pronounType
TypeScriptget pronounType(): (Morphology_PronounType) | nullSwift declarationvar pronounType: Morphology.PronounType?struct · iOS 15.0+ · SDK 27.1
struct MorphologyA description of the grammatical properties of a string. Use a morphology with an ``InflectionRule`` to specify how to interpret a specific word when inflecting an ``AttributedString``. This affects grammatical agreement with traits like number and gender, as well as declaring the word's part of speech. The ``Morphology`` type's design is language-independent; the concepts it can specify encompass the spectrum of what languages can do. Even for languages that don't have one or more of those properties benefit the system as hints to make appropriate choices even when an exact inflection isn't possible. Examples of properties absent from languages include Spanish's lack of a grammatical gender of neuter, or the nonexistence of a paucal (plural few) pronoun in English.
get pronounType(): (Morphology_PronounType) | nullSwift declarationvar pronounType: Morphology.PronounType?set pronounType(value: (Morphology_PronounType) | null)Swift declarationvar pronounType: Morphology.PronounType?get definiteness(): (Morphology_Definiteness) | nullSwift declarationvar definiteness: Morphology.Definiteness?set definiteness(value: (Morphology_Definiteness) | null)Swift declarationvar definiteness: Morphology.Definiteness?get partOfSpeech(): (Morphology_PartOfSpeech) | nullSwift declarationvar partOfSpeech: Morphology.PartOfSpeech?The grammatical part of speech used for inflecting strings with this morphology.
set partOfSpeech(value: (Morphology_PartOfSpeech) | null)Swift declarationvar partOfSpeech: Morphology.PartOfSpeech?The grammatical part of speech used for inflecting strings with this morphology.
customPronoun(language: string): (Morphology_CustomPronoun) | nullSwift declarationfunc customPronoun(forLanguage language: String) -> Morphology.CustomPronoun?Returns any custom pronoun behavior this morphology applies to the given language. - Parameter language: The language for which to retrieve custom pronoun behavior. - Returns: A ``CustomPronoun`` instance, or `nil` if no custom pronoun behavior is set for the given language.
get determination(): (Morphology_Determination) | nullSwift declarationvar determination: Morphology.Determination?set determination(value: (Morphology_Determination) | null)Swift declarationvar determination: Morphology.Determination?get isUnspecified(): booleanSwift declarationvar isUnspecified: Bool { get }A Boolean value that indicates whether this instance specifies no particular grammar.
get grammaticalCase(): (Morphology_GrammaticalCase) | nullSwift declarationvar grammaticalCase: Morphology.GrammaticalCase?set grammaticalCase(value: (Morphology_GrammaticalCase) | null)Swift declarationvar grammaticalCase: Morphology.GrammaticalCase?setCustomPronoun(pronoun: (Morphology_CustomPronoun) | null, language: string): voidSwift declarationmutating func setCustomPronoun(_ pronoun: Morphology.CustomPronoun?, forLanguage language: String) throwsSets a custom pronoun behavior for this morphology to apply to the given language. - Parameters: - pronoun: The custom pronoun behavior to set, or `nil` to remove any existing custom pronoun behavior. - language: The language for which to set the custom pronoun behavior.
get grammaticalGender(): (Morphology_GrammaticalGender) | nullSwift declarationvar grammaticalGender: Morphology.GrammaticalGender?The grammatical gender used for inflecting strings with this morphology.
set grammaticalGender(value: (Morphology_GrammaticalGender) | null)Swift declarationvar grammaticalGender: Morphology.GrammaticalGender?The grammatical gender used for inflecting strings with this morphology.
get grammaticalPerson(): (Morphology_GrammaticalPerson) | nullSwift declarationvar grammaticalPerson: Morphology.GrammaticalPerson?set grammaticalPerson(value: (Morphology_GrammaticalPerson) | null)Swift declarationvar grammaticalPerson: Morphology.GrammaticalPerson?static get user(): MorphologySwift declarationstatic let user: MorphologyThe addressing preferences of the current user.
get number(): (Morphology_GrammaticalNumber) | nullSwift declarationvar number: Morphology.GrammaticalNumber?The grammatical number used for inflecting strings with this morphology.
set number(value: (Morphology_GrammaticalNumber) | null)Swift declarationvar number: Morphology.GrammaticalNumber?The grammatical number used for inflecting strings with this morphology.
static init(): MorphologySwift declarationinit()Creates an empty morphology instance.
No declarations were skipped in this snapshot.