gplx/mediawiki/languages/data/grammarTransformations/ru.json

65 lines
1.8 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"@metadata": {
"authors": [
"Alexander Sigachov (alexander.sigachov at Googgle Mail)",
"Amir E. Aharoni (amir.aharoni@mail.huji.ac.il)"
],
"comment": "These rules don't cover the whole grammar of the language, and are intended only for names of languages and Wikimedia projects."
},
"genitive": [
[ "(.+)ь$", "$1я" ],
[ "(.+)ия$", "$1ии" ],
[ "(.+)ка$", "$1ки" ],
[ "(.+)ти$", "$1тей" ],
[ "(.+)ды$", "$1дов" ],
[ "(.+)д$", "$1да" ],
[ "(.+)ник$", "$1ника" ],
[ "(.+)тет$", "$1тета" ],
[ "(.+)ные$", "$1ных" ]
],
"accusative": [
[ "(.+)ия$", "$1ию" ],
[ "(.+)ка$", "$1ку" ],
[ "(.+)а$", "$1у" ]
],
"prepositional": [
[ "(.+)ь$", "$1е" ],
[ "(.+)ия$", "$1ии" ],
[ "(.+)ка$", "$1ке" ],
[ "(.+)ти$", "$1тях" ],
[ "(.+)ды$", "$1дах" ],
[ "(.+)д$", "$1де" ],
[ "(.+)ник$", "$1нике" ],
[ "(.+)тет$", "$1тете" ],
[ "(.+)ные$", "$1ных" ]
],
"languagegen": [
[ "@metadata", [
"comment", "язык в родительном падеже: '(с) русского'"
] ],
[ "(.+)кий$", "$1кого" ],
[ "иврит$", "иврита" ],
[ "идиш$", "идиша" ],
[ "(.+)$", "$1" ]
],
"languageprep": [
[ "@metadata", [
"comment", "язык в предложном падеже: '(на) русском'"
] ],
[ "(.+)кий$", "$1ком" ],
[ "иврит$", "иврите" ],
[ "идиш$", "идише" ],
[ "(.+)$", "$1" ]
],
"languageadverb": [
[ "@metadata", [
"comment", "наречие с названием языка: 'по-русски'"
] ],
[ "(.+)кий$", "по-$1ки" ],
[ "иврит$", "на иврите" ],
[ "идиш$", "на идише" ],
[ "(идо|урду|хинди|эсперанто)$", "на $1" ],
[ "(.+)$", "на языке $1" ]
]
}