userMorphology
Overview 概要
Use a morphology with an NSInflection
to specify how to interpret a specific word when inflecting an NSAttributed
. This affects grammatical agrement with traits like number and gender, as well as declaring the word’s part of speech.
The NSMorphology
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.
それらプロパティの1つも持たない言語に対してさえ、適切な選択をするヒントとしてシステムに利益を与えます、正確な屈折が可能でない時にさえ。言語それらに欠けているプロパティの例として、スペイン語のもつ中性の文法的性の不在、または英語でpaucal(複数のfew)の存在しないことがあります。