Module:grc-decl/documentation

This module is the backend to and. It was created by ObsequiousNewt and then restructured by JohnC5 and Erutuon.

Odds and ends
The module tracks uses of and  in which parameter 1 does not have an accent mark using the tracking template. Irregular and indeclinable paradigms are excluded from this check.

The module adds a breve or macron to mark the length of the monophthongs if they do not bear a macron, breve, circumflex, or iota subscript and the length can be deduced from the rules of accent. Thus, generates the same forms as. This is done by the lua and lua functions in Module:grc-accent.

Nominative and genitive, masculine and feminine, or masculine and neuter endings containing the monophthongs need not be marked with macrons and breves if there is only one declension with the given endings when vowel length is ignored. Thus is fine because the only declension pattern with the endings  is, but  will throw an error, because both  and  are possible. This feature is made possible by Module:grc-decl/decl/staticdata.

Submodules
Module:grc-decl/decl contains functions that determine the declension class, generate the inflected forms, and retrieves the correct forms of the article.

Module:grc-decl/table generates the table using the inflected forms, the forms of the article (if any), and the dialect and titleapp parameters.

Module:grc-decl/params contains the lists of parameters used by and.

Module:grc-decl/decl/data contains functions that return the forms of a given declension type, modifying the raw paradigms or the stems as necessary.

Module:grc-decl/decl/staticdata generates data that is copied to Module:grc-decl/decl/classes and used to determine the declension class based on the nominative and genitive (for nouns) or the masculine and feminine or neuter (for adjectives).

Module:grc-decl/decl/staticdata/paradigms contains raw paradigms for declension classes, as well as any variations with a different accent on the ending.

Module:grc-decl/decl/staticdata/dialects contains data for dialect groups.