-
Notifications
You must be signed in to change notification settings - Fork 0
/
pseudo-code.txt
55 lines (46 loc) · 1.89 KB
/
pseudo-code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
################ ADJECTIVES
#forms not marked for case
if unlenitable OR f-:
#no change
ABASE[+PRED] -> "sgìth"
#extra vowel + letite
ACOMP -> "fhliche" | "àirde" | "sgìthe"
else:
#no change
ABASE[-LEN, +PRED] -> "glic" | "cudromach"
#lenite
ABASE[+LEN, +PRED] -> "ghlic" | "chudromach"
#slenderize + vowel
ACOMP[-LEN] -> "glice" | "cudromaiche"
#slenderize + lenite
ACOMP[+LEN] -> "ghlice" | "chudromaiche"
#forms marked for case
#no change
ABASE[CASE=rad, GEN=masc, -LEN] -> "glic" | "cudromach"
#lenite
ABASE[CASE=rad, GEN=masc, +LEN] -> "ghlic" | "chudromach"
#lenite
ABASE[CASE=prep, GEN=masc, +LEN] -> "ghlic" | "chudromach"
#lenite + slenderize
ABASE[CASE=poss, GEN=masc, +LEN] -> "ghlic" | "chudromaich"
#lenite
ABASE[CASE=rad, GEN=fem, +LEN] -> "ghlic" | "chudromach"
#lenite + slenderize
ABASE[CASE=prep, GEN=fem, +LEN] -> "ghlic" | "chudromaich"
#slenderize, if syl == 'mono' then add vowel
ABASE[CASE=poss, GEN=fem, -LEN] -> "glice" | "cudromaich"
#if syl == "mono" then add vowel
ABASE[CASE=?cs, GEN=pl] -> "glice" | "cudromach"
#lenite, if syl == "mono" then add vowel
ABASE[CASE=?cs, GEN=pl, +LEN] -> "ghlice" | "chudromach"
#MARK'S PSEUDOCODE
#detect the two different list elements:
#monosyllabic, multisyllabic (according to SYL variable)
#see regular_adjectives.fcfg - certainly move this to compileGrammar(),
#and pass mono as T/F, with the argument being a string
#split the strings into an 'adjectives' list according to " | " - abstract this to a function later on
#for adjective in adjectives:
#if mono -
#addFinalVowel(adjective) in productions['a_gen_masc'], productions['a_gen_fem'], productions['a_all_pl']
#concatenate lists into strings with the " | " separator - abstract this to a function later on
#return the list