A description of the linguistic content of natural language text, typically used for spelling and grammar checking.
- iOS 4.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
NSOrthography objects to describe the linguistic content of a piece of text, including which scripts the text contains, a dominant language (and possibly other languages) for each script, and a dominant script and language for the text as a whole.
Scripts are uniformly described by four-letter ISO 15924 script codes, such as
"Cyrl". The supertags
"Kore" are typically used for Japanese and Korean text, and
"Hant" are typically used for Chinese text. The tag
"Zyyy" is used if a specific script cannot be identified. See Internationalization and Localization Guide for more information.
Languages are uniformly described by BCP-47 tags (preferably in canonical form). The tag
"und" is used if a specific language cannot be determined.