Module:ar-nominals/documentation
This module implements template {{ar-decl-noun}}
, {{ar-decl-adj}}
, {{ar-decl-coll-noun}}
, {{ar-decl-sing-noun}}
, {{ar-decl-gendered-noun}}
, and {{ar-decl-numeral}}
.
For testcases, see Module:ar-nominals/testcases.
Functions
editshow_noun(frame)
- Main entry point for implementing
{{ar-decl-noun}}
.
show_adj(frame)
- Main entry point for implementing
{{ar-decl-adj}}
.
show_coll_noun(frame)
- Main entry point for implementing
{{ar-decl-coll-noun}}
.
show_sing_noun(frame)
- Main entry point for implementing
{{ar-decl-sing-noun}}
.
show_gendered_noun(frame)
- Main entry point for implementing
{{ar-decl-gendered-noun}}
.
show_numeral(frame)
- Main entry point for implementing
{{ar-decl-numeral}}
.
detect_type(stem, isfem, num)
- Detect declension of noun or adjective stem or lemma. We allow triptotes, diptotes and sound plurals to either come with ʾiʿrāb or not. We detect some cases where vowels are missing, when it seems fairly unambiguous to do so.
isfem
is true if we are dealing with a feminine form (only for adjectives).num
is sg, du or pl depending on the intended number of the noun or adjective.
stem_and_type(word, sg, sgtype, isfem, num)
- Return stem and declension of an argument given the singular form and declension type, whether this is a feminine form (only for adjectives), and the intended number of the noun or adjective (sg, du or pl). Singular form and type only used when inferring plural based on singular (e.g. when argument is a bare plural declension type such as 'sfp' for the sound feminine plural).