| 1 |
# based on |
| 2 |
# https://raw.githubusercontent.com/apertium/apertium-dan/master/apertium-dan.dan.rlx |
| 3 |
# -*- cg-pre-pipe: "apertium -d . dan-morph|cg-conv -a 2>/dev/null" -*- |
| 4 |
|
| 5 |
SOFT-DELIMITERS = "<,>" cm ; |
| 6 |
DELIMITERS = "<.>" "<:>" "<!>" "<?>" "<|>" "<$.>" "<$:>" "<$!>" "<$?>" "<$|>" ssingular ; |
| 7 |
|
| 8 |
#PARENTHESES = ("<$(>" "$<)>") ("<$[>" "<$]>") ("<${>" "<$}>") ; |
| 9 |
|
| 10 |
LIST GENDER = m f nt mf ut ; |
| 11 |
LIST NUMBER = sg pl sp ; |
| 12 |
LIST DEFNES = def ind ; |
| 13 |
LIST TEMPUS = inf pres pasv pret pp imp ; |
| 14 |
|
| 15 |
# For use with http://beta.visl.sdu.dk/cg3/single/#set-unification-set |
| 16 |
# as &&ADJ_N_AGR (also works for demonstratives): |
| 17 |
LIST AGR_MF = ut mf f m ; |
| 18 |
LIST AGR_SP = (sp un) ; |
| 19 |
SET AGR_MF_SG = (sg) + AGR_MF OR AGR_SP ; |
| 20 |
SET AGR_NT_SG = (sg) + (nt) OR AGR_SP ; |
| 21 |
SET AGR_PL = (pl) OR AGR_SP ; |
| 22 |
SET ADJ_N_AGR = AGR_MF_SG OR AGR_NT_SG OR AGR_PL ; |
| 23 |
# ADD:agrtest (@agrtest) &&ADJ_N_AGR IF (-1 &&ADJ_N_AGR); |
| 24 |
# sitt telefoner. sine telefoner. si telefoner. sin telefoner. |
| 25 |
# sitt telefon. sine telefon. si telefon. sin telefon. |
| 26 |
# sitt bidrag. sine bidrag. si bidrag. sin bidrag. |
| 27 |
# sitt hus. sine hus. si hus. sin hus. |
| 28 |
|
| 29 |
LIST ADJ_NUMGEN = pl (nt sg) (mf sg) ; |
| 30 |
|
| 31 |
|
| 32 |
LIST sg = sg ; |
| 33 |
LIST pl = pl ; |
| 34 |
LIST ut = ut ; |
| 35 |
LIST nt = nt ; |
| 36 |
|
| 37 |
LIST n = n ; |
| 38 |
LIST pr = pr ; |
| 39 |
LIST vblex = vblex ; |
| 40 |
|
| 41 |
LIST expl = expl ; |
| 42 |
LIST ord = ord ; |
| 43 |
LIST adj = adj ; |
| 44 |
LIST def = def ; |
| 45 |
LIST ind = ind ; |
| 46 |
LIST ref = ref ; |
| 47 |
LIST pers = pers ; |
| 48 |
LIST pres = pres ; |
| 49 |
LIST pret = pret ; |
| 50 |
LIST cm = cm ; |
| 51 |
LIST cnjadv = cnjadv ; |
| 52 |
|
| 53 |
LIST fv = pres pret ; |
| 54 |
|
| 55 |
SET pre-np-head = (*) - (gen) - (adj); |
| 56 |
|
| 57 |
LIST %al% = "al" ; |
| 58 |
LIST %al%-det = "al" det qnt ; |
| 59 |
LIST %aller% = ("aller" adv) ; |
| 60 |
LIST %alt% = ("al" det nt) ; |
| 61 |
LIST %andre% = "andre" ; |
| 62 |
LIST %anden% = "anden" ; |
| 63 |
LIST %andet% = "andet" ; |
| 64 |
LIST %anden/samme%/quantifier-neuter = ("anden" nt) ("samme" ) (det qnt) ; |
| 65 |
LIST %bodyparts%-plural = ("arm" pl) ("ben" pl) ("krop" pl) ("læg" pl) ; |
| 66 |
LIST %at% = "at" ; |
| 67 |
LIST %særlig% = "særlig" ; |
| 68 |
LIST %at/om% = "om" "at" ; |
| 69 |
LIST %om-at% = "om at" ; |
| 70 |
LIST %af% = "af" ; |
| 71 |
LIST %bare% = ("bare" adv) ; |
| 72 |
LIST %begge/selve/alle% = "selv" "begge" ("al" det pl) ; |
| 73 |
LIST %bla% = "blandt andet" "bl.a." ; |
| 74 |
LIST %blik% = ("blik" adv) ; |
| 75 |
LIST %både% = "både" ; |
| 76 |
LIST %da% = "da" ; |
| 77 |
LIST %den% = ("den" det) ; |
| 78 |
LIST %den/denne% = ("den" det) ("denne" det) ; |
| 79 |
LIST %den/det/de% = "det" "den" "de" ; |
| 80 |
LIST %der% = "der" ; |
| 81 |
LIST %det% = "det" ("den" det nt) ; |
| 82 |
LIST %det%-pron = ("det" prn) ; |
| 83 |
LIST %det/dette% = ("den" det nt) ("denne" det nt) ; |
| 84 |
LIST %disse% = ("denne" det dem un pl) ; |
| 85 |
LIST %eksempel% = "eksempel" ; |
| 86 |
LIST %eksklusiv/e% = "eksklusive" "eksklusiv" ; |
| 87 |
LIST %eller% = "eller" ; |
| 88 |
LIST %endnu% = "endnu" ; |
| 89 |
LIST %end% = "end" ; |
| 90 |
LIST %et% = ("en" det nt sg) ; |
| 91 |
LIST %en% = ("en" det ut sg) ; |
| 92 |
LIST %en/et% = ("en" det sg ut) ("en" det sg nt) ; |
| 93 |
LIST %fare%-past = ("fare" vblex past) ; |
| 94 |
LIST %fast% = ("fast" adj) ; |
| 95 |
LIST %flere% = ("mange" adj comp) ; |
| 96 |
LIST %for% = "for" ; |
| 97 |
LIST %for/før/når% = "når" "før" "for" ; |
| 98 |
LIST %frem/ind/op% = ("frem" pr) ("ind" pr) ("op" pr) ; |
| 99 |
LIST %fuldstændig% = ("fuldstændig") ; |
| 100 |
LIST %fuldt/mange% = "mange" ("fuld" adj nt ind sg) ; # |