(Pes) add ZWNJ + remove some repetition for pronouns

This commit is contained in:
Inari Listenmaa
2019-03-05 15:18:57 +01:00
parent 2f8e4dfad6
commit 9aa34ac2b6
4 changed files with 31 additions and 15 deletions
+21 -2
View File
@@ -253,13 +253,13 @@ oper
taryn = "ترین" ;
-----------------------------
-- Noun Phrase
-- Noun phrase
-----------------------------
partNP : Verb -> Str = \v -> v.prefix ++ v.s ! PerfStem ++ "شده" ;
-----------------------------------
-- Reflexive Pronouns
-- Reflexive pronouns
-----------------------------------
reflPron : Agr => Str = table {
@@ -280,4 +280,23 @@ oper
<Inanimate,Pl> => zwnj "آن" "ها"
};
-----------------------------------
-- Personal pronouns
-----------------------------------
Pron : Type = {s : Str ; ps : Str ; a : Agr} ;
mkPron : (nom:Str) -> (poss:Str) -> Number -> Person -> Pron -- Hidden from public API, confusing naming. /IL
= \nom,poss,nn,p -> lin Pron {s = nom ; a = Ag nn p ; ps = poss};
agr2pron : Agr => Pron = table {
Ag Sg P1 => mkPron "من" "م" Sg P1 ;
Ag Sg P2 => mkPron "تو" "ت" Sg P2 ;
Ag Sg P3 => mkPron "او" "ش" Sg P3 ;
Ag Pl P1 => mkPron "ما" "مان" Pl P1 ;
Ag Pl P2 => mkPron "شما" "تان" Pl P2 ;
Ag Pl P3 => mkPron (zwnj "آن" "ها") "شان" Pl P3
} ;
}