diff --git a/README.md b/README.md index e311bf0..edf18a9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ -# sgs-plural +# Samogitian language (ISO-639-3: sgs) plural forms -Code to test plural forms in Samogitian language. Needed for translation. \ No newline at end of file +Written by Arns Udovič in 2021 + +Refs: +https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms + +## Logics + +0 - singular or ending in 1 with exception for 11. Ex., 1 laps +1 - dual or ending in 2 with exception for 12. Ex. 2 lapo +2 - other plural. Ex. 25 lapā +3 - plural for 11-19, 10, 20, 100... Ex. 12 lapu +Code to test plural forms in Samogitian language. Needed for translation. + +## Result + +See result.txt diff --git a/result.txt b/result.txt new file mode 100644 index 0000000..ee72641 --- /dev/null +++ b/result.txt @@ -0,0 +1,26 @@ +This is test of plural forms for Samogitian languages +Written by Arns Udovič in 2021 + +0 - singular or ending in 1 with exception for 11. Ex., 1 laps +1 - dual or ending in 2 with exception for 12. Ex. 2 lapo +2 - other plural. Ex. 25 lapā +3 - plural for 11-19, 10, 20, 100... Ex. 12 lapu + +Testing 0, should be: 3, got 3 +Testing 1, should be: 0, got 0 +Testing 2, should be: 1, got 1 +Testing 3, should be: 2, got 2 +Testing 10, should be: 3, got 3 +Testing 11, should be: 3, got 3 +Testing 15, should be: 3, got 3 +Testing 20, should be: 3, got 3 +Testing 21, should be: 0, got 0 +Testing 22, should be: 1, got 1 +Testing 25, should be: 2, got 2 +Testing 100, should be: 3, got 3 +Testing 101, should be: 0, got 0 +Testing 102, should be: 1, got 1 +Testing 115, should be: 3, got 3 +Testing 200, should be: 3, got 3 +Testing 1000, should be: 3, got 3 +Testing 100000, should be: 3, got 3