Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russian grammar update with missing 'chord' status street name #245

Merged
merged 3 commits into from
May 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. For change
- Added a Finnish localization. [#239](https://github.com/Project-OSRM/osrm-text-instructions/pull/239)
- Added a Korean localization. [#243](https://github.com/Project-OSRM/osrm-text-instructions/pull/243)
- Updated translations in Simplified Chinese. [#233](https://github.com/Project-OSRM/osrm-text-instructions/pull/233)
- Updated Russian grammar with 'chord' status street name. [#245](https://github.com/Project-OSRM/osrm-text-instructions/pull/245)
- Added Russian church names abbreviations. [#237](https://github.com/Project-OSRM/osrm-text-instructions/pull/237)

## 0.13.0 2018-04-11
Expand Down
4 changes: 4 additions & 0 deletions languages/grammar/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
["^ [Дд]орожка ", " дорожку "],

["^ (\\S+)ая [Кк]оса ", " $1ую косу "],
["^ (\\S+)ая [Хх]орда ", " $1ую хорду "],

["^ [Дд]убл[её]р ", " дублёр "]
],
Expand Down Expand Up @@ -177,6 +178,7 @@

["^ (\\S+)во [Пп]оле ", " $1ву полю "],
["^ (\\S+)ая [Кк]оса ", " $1ой косе "],
["^ (\\S+)ая [Хх]орда ", " $1ой хорде "],
["^ (\\S+)[иоы]й [Пп]роток ", " $1ому протоку "],

["^ (\\S+н)ий [Бб]ульвар ", " $1ему бульвару "],
Expand Down Expand Up @@ -478,6 +480,7 @@

["^ (\\S+)во [Пп]оле ", " $1ва поля "],
["^ (\\S+)ая [Кк]оса ", " $1ой косы "],
["^ (\\S+)ая [Хх]орда ", " $1ой хорды "],
["^ (\\S+)[иоы]й [Пп]роток ", " $1ого протока "],

["^ (\\S+н)ий [Бб]ульвар ", " $1его бульвара "],
Expand Down Expand Up @@ -778,6 +781,7 @@

["^ (\\S+)во [Пп]оле ", " $1вом поле "],
["^ (\\S+)ая [Кк]оса ", " $1ой косе "],
["^ (\\S+)ая [Хх]орда ", " $1ой хорде "],
["^ (\\S+)[иоы]й [Пп]роток ", " $1ом протоке "],

["^ (\\S+н)ий [Бб]ульвар ", " $1ем бульваре "],
Expand Down
4 changes: 4 additions & 0 deletions test/grammar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const grammarTests = {
['Шаморовская трасса', 'dative', 'Шаморовской трассе'],
['Шаморовская трасса', 'genitive', 'Шаморовской трассы'],
['Шаморовская трасса', 'prepositional', 'Шаморовской трассе'],
['Северо-восточная хорда', 'accusative', 'Северо-восточную хорду'],
['Северо-восточная хорда', 'dative', 'Северо-восточной хорде'],
['Северо-восточная хорда', 'genitive', 'Северо-восточной хорды'],
['Северо-восточная хорда', 'prepositional', 'Северо-восточной хорде'],
['Самотёчная эстакада', 'accusative', 'Самотёчную эстакаду'],
['Самотёчная эстакада', 'dative', 'Самотёчной эстакаде'],
['Самотёчная эстакада', 'genitive', 'Самотёчной эстакады'],
Expand Down