mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-10-26 01:33:18 -06:00
merged Prasanth's UWN additions to Dictionary in Fre,Ita,Spa. Unsound verbs and adjectives left out, although manual checking could find valid variants from them. Verbs not always compared with Irreg lists, which means that they can get erroneous regular inflections.
This commit is contained in:
1 parent
3ae8ec3501
commit
604637ed84
4 files changed
+25032
-1290
No files matched your search
@@ -15,20 +15,21 @@ hasError lang ws = case ws of
|
||||
|
||||
isError lang u v = case lang of
|
||||
"Spa" -> case bareOp u of
|
||||
"mkV" | head v == '"' -> notElem (dp 2 (stringOf v)) ["ar","er","ir","se"]
|
||||
"mkV2" | head v == '"' -> notElem (dp 2 (stringOf v)) ["ar","er","ir","se"]
|
||||
"mkV" | head v == '"' -> notElem (dp 2 (stringOf v)) ["ar","er","ir","se"] || elem '_' v
|
||||
"mkV2" | head v == '"' -> notElem (dp 2 (stringOf v)) ["ar","er","ir","se"] || elem '_' v
|
||||
"mkA" -> elem '_' (stringOf v)
|
||||
_ -> False
|
||||
"Ita" -> case bareOp u of
|
||||
"mkV" | head v == '"' -> notElem (dp 3 (stringOf v)) ["are","ere","ire","rsi"]
|
||||
"mkV2" | head v == '"' -> notElem (dp 3 (stringOf v)) ["are","ere","ire","rsi"]
|
||||
"Ita" -> case take 3 (bareOp u) of
|
||||
"mkV" | head v == '"' -> notElem (dp 3 (stringOf v)) ["are","ere","ire","rsi"] || elem '_' v
|
||||
"mkA" -> elem '_' (stringOf v)
|
||||
_ -> False
|
||||
"Fre" -> case bareOp u of
|
||||
"mkV" | head v == '"' -> notElem (dp 2 (stringOf v)) ["er","ir","re"]
|
||||
"mkV2" | head v == '"' -> notElem (dp 2 (stringOf v)) ["er","ir","re"]
|
||||
"Fre" -> case take 3 (bareOp u) of
|
||||
"mkV" | head v == '"' -> notElem (dp 2 (stringOf v)) ["er","ir","re"] || elem '_' v
|
||||
"mkv" | head v == '"' -> notElem (dp 2 (stringOf v)) ["er","ir","re"] || elem '_' v
|
||||
_ | bareOp u == "mkA" -> elem '_' (stringOf v)
|
||||
_ -> False
|
||||
"Ger" -> case bareOp u of
|
||||
"mkV" | head v == '"' -> notElem (dp 2 (stringOf v)) ["en","rn","ln"]
|
||||
"mkV2" | head v == '"' -> notElem (dp 2 (stringOf v)) ["en","rn","ln"]
|
||||
_ -> False
|
||||
|
||||
dp :: Int -> String -> String
|
||||
|
||||
+8858
-488
File diff suppressed because it is too large.
Load diff
+8662
-562
File diff suppressed because it is too large.
Load diff
+7502
-231
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user