Contents

Morphology

A description of the grammatical properties of a string.

Declaration

struct Morphology

Overview

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.

Topics

Creating a Morphology Instance

Accessing the User’s Morphology

Accessing Grammatical Properties

Accessing Per-Language Features

Structures

Instance Properties

Enumerations

See Also

Automatic grammar agreement