diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 04:38:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 04:38:46 -0800 |
| commit | 3fbc89273dbebadf5e70197a51ddfae3131202c4 (patch) | |
| tree | c15cd9aa121bfda34be46103a6cc4e706e3042db /lib/plurals.nom | |
| parent | 756c1f718ee427d89e5fdbfae00f760b89f793eb (diff) | |
Removed some dead code and streamlined the API a bit. Also added
training wheels for ease of transitions.
Diffstat (limited to 'lib/plurals.nom')
| -rw-r--r-- | lib/plurals.nom | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/plurals.nom b/lib/plurals.nom deleted file mode 100644 index 0bb7e50..0000000 --- a/lib/plurals.nom +++ /dev/null @@ -1,24 +0,0 @@ -use "lib/core.nom" - -# Plurals -using: - <%endings> = (chain {x="es",c="es",s="es"} to "s") - <%plurals> = (chain {} to (: "\%\((<%endings>)->(%| -1|))")) - <%singulars> = (..) - chain {} to: - when: - * (((%| -2|) == "es") and (=lua"rawget(\(<%endings>), \(%| -3|))")): - %|1 - -3| - * (%| -1| == "s"): - %|1 - -2| - else: % -..do: - rule [the plural of %singular is %plural] =: - (<%plurals>)->%singular = %plural - (<%singulars>)->%plural = %singular - - rule [singular %plural] =: - (<%singulars>)->%plural - - rule [plural %singular] =: - (<%plurals>)->%singular |
