Last active
May 17, 2018 14:17
-
-
Save odanoburu/a03239d024310ff0df233743d16f8ec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- hack to get the same behaviour as from variants. parses both, | |
-- linearizes the first. | |
vars : Str -> Str -> Str = \x,y -> pre { "" => x ; _ => y } ; | |
mkPass : Str -> Gender => Number => Str ; | |
-- passive form is highly predictable from singular masculine form | |
mkPass p = case p of { | |
amad + "o" => genNumForms p (amad + "a") (amad + "os") (amad + "as") ; | |
entregu + "e" => \\g => numForms p (entregu + "es") ; | |
_ => error "unknown ending" -- nothing should reach here | |
} ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
interstingly,
is this expected?