Greek morphology code rules (normalized from code_description_dictionary_entries.csv) ============================================================================== Purpose - This file rewrites the flat code inventory into a compact rulebook. - The source CSV is mostly an expanded inventory of allowed tags. - Many tags can be generated from a small set of part-of-speech codes, feature codes, and composition patterns. - A few rows in the CSV look irregular or legacy-like; those are listed under 'Special / irregular entries' rather than treated as normal grammar. 1) Part-of-speech and base category codes ------------------------------------------------------------------------------ A: adjective A1P: adjective, 1st declension, -οσ/-α/-ον pattern endings A3: adjective, 3rd declension pattern endings N: noun M: indeclinable number M3M: indeclinable number (special subtype found in the CSV) RA: article RD: demonstrative pronoun RI: interrogative / indefinite pronoun RP: personal / possessive pronoun RR: relative pronoun RX: relative pronoun, ὅστις-type V: verb C: conjunction D: adverb P: preposition I: interjection X: particle 2) Feature code meanings ------------------------------------------------------------------------------ Case: N: nominative / nom G: genitive / gen D: dative / dat A: accusative / acc V: vocative / voc Number: S: singular / sing P: plural / plur D: dual Gender: M: masculine / masc F: feminine / fem N: neuter / neut Degree: C: comparative S: superlative Verb tense/aspect code: P: present I: imperfect F: future A: aorist X: perfect Y: pluperfect Verb voice code: A: active M: middle P: passive Verb mood / form code: I: indicative / ind S: subjunctive / subj O: optative / opt D: imperative / imper N: infinitive / infin P: participle / part Person: 1: 1st person 2: 2nd person 3: 3rd person 3) Main code patterns ------------------------------------------------------------------------------ A. Simple part of speech CODE := POS Examples: C, P, X, I, A, N B. Nominal pattern CODE := POS '.' CASE NUMBER [GENDER] [DEGREE] Applies mainly to: A, N, M, RA, RD, RI, RP, RR, RX Examples: A.NSM = adjective, nominative singular masculine A.GPFC = adjective, genitive plural feminine comparative N.ASN = noun, accusative singular neuter RA.GSM = article, genitive singular masculine RR.NPF = relative pronoun, nominative plural feminine C. Verb finite pattern CODE := V '.' TENSE VOICE MOOD PERSON NUMBER Examples: V.PAI3S = verb, present active indicative, 3rd singular V.AMI1P = verb, aorist middle indicative, 1st plural V.FPS2S = verb, future passive subjunctive, 2nd singular D. Verb infinitive pattern CODE := V '.' TENSE VOICE N Examples: V.PAN = verb, present active infinitive V.AMN = verb, aorist middle infinitive V.XPN = verb, perfect passive infinitive E. Verb participle pattern CODE := V '.' TENSE VOICE P CASE NUMBER GENDER Examples: V.PAPNSM = verb, present active participle, nominative singular masculine V.AMPASF = verb, aorist middle participle, accusative singular feminine V.XPPGPN = verb, perfect passive participle, genitive plural neuter F. Compound pattern CODE := POS '+' POS [ '.' FEATURES ] Examples: C+D = conjunction + adverb C+X = conjunction + particle P+X = preposition + particle C+RP.NSM = conjunction + relative pronoun, nominative singular masculine P+A.ASM = preposition + adjective, accusative singular masculine RD+N.GSM = demonstrative pronoun + noun, genitive singular masculine 4) Reading the nominal feature clusters ------------------------------------------------------------------------------ NSM = nominative singular masculine NPF = nominative plural feminine GPN = genitive plural neuter DSF = dative singular feminine APMC = accusative plural masculine comparative VSMS = vocative singular masculine superlative Some codes omit gender or degree when the form does not distinguish them. Examples from the CSV: N.A = noun, accusative RI.GS = interrogative / indefinite pronoun, genitive singular RP.NP = personal / possessive pronoun, nominative plural 5) Reading the verb clusters ------------------------------------------------------------------------------ PAI3S = present active indicative 3rd singular AAI1P = aorist active indicative 1st plural FMO2S = future middle optative 2nd singular APN = aorist passive infinitive (pattern expectation; see irregular notes below) PAPNSM = present active participle nominative singular masculine MPPAPN = middle/passive participle accusative plural neuter 6) Special / irregular entries to treat cautiously ------------------------------------------------------------------------------ These rows appear in the CSV but do not fit the compact grammar cleanly, or they use unusual / legacy notation. A.B: adjective, A.P: adjective, Pres D.P: adverb, Pres N.AAN: noun, Aor Act Infin N.G/D: noun, Gen/Dat N.N M: noun, Nom Masc V.AI3P: verb, Fut Act Ind 3rd Plur V.APN: verb, Acc Plur Neut V.XPP2S: verb, Perf Pass Ind 2nd Sing V.ZMI3S: verb, Fut Pass Ind 3rd Sing 7) Suggested use in prompts / validators ------------------------------------------------------------------------------ For AI prompting or validation, prefer the compact grammar above plus: - the base category table - the feature code tables - a short set of examples - the explicit special / irregular list That is easier to maintain than pasting the full flat inventory into a prompt.