aboutsummaryrefslogtreecommitdiffstats
path: root/languages/data/grammarTransformations
Commit message (Collapse)AuthorAgeFilesLines
* Add declension rules for project names in EstonianPikne2025-02-201-0/+39
| | | | | | | | These rules supersede grammar forms that thus far have been defined in WikimediaMessages extension. Additionally these rules target some more Wikimedia sitenames that previously weren't declined. Change-Id: Ic1827eed04bcc61be8f5053c61f47610bc0c842a
* Modify namespace translation for Mongolian (mn)Srishakatux2024-08-291-0/+13
| | | | | | | To be merged after the following change has been deployed: https://gerrit.wikimedia.org/r/1060893 Bug: T366271 Change-Id: I1dd9a91bc37e32bde15f52271fbea2580943ab99
* Languages: Add oblique grammar for (Northern) KurdishJon Harald Søby2023-04-201-0/+14
| | | | | | | | Add file for (Northern) Kurdish [ku] to enable {{GRAMMAR:oblique}} for sitenames. Bug: T335036 Change-Id: Ia7458d5795d618eafa6b38bf06eadbcb98cfb5a7
* Make Norwegian's genitive grammar work for linksJon Harald Søby2022-11-012-2/+2
| | | | | | | | If the input for the {{GRAMMAR:genitive}} is a [[link]], ignore the final ]s when deciding which case to use for the genitive. Change-Id: I3dedfac88c0dce73040b461f0e2047e386ca0ef8
* Grammar for Georgian - genitiveAmir E. Aharoni2022-05-151-0/+13
| | | | | | | | | First step towards resolving bug T307207. Other cases will be added in subsequent patches. Bug: T307207 Change-Id: I7ae6c05cd2eca6031da29aa3c203341b70ebb1b1
* Add the Pannonian Rusyn language (rsk)Amir E. Aharoni2022-02-271-0/+19
| | | | | | | | | | Autonym verified with Руско-сербски словнїк, Юлиян Рамач, Филозофски факултет Нови Сад – Одсек за русинистику, Завод за културу войводянских руснацох Нови Сад, 2010 Bug: T302556 Change-Id: I8d70c3e0073e360eb6a4291576caac530b96a6cc
* Add accusative case to Russian language GRAMMARAmir Aharoni2020-10-101-0/+5
| | | | | Bug: T257500 Change-Id: I30a892a936c0ed9247bc6b63be747697cb9f3e26
* Adding default locative rule for UkrainianBase2020-06-121-1/+5
| | | | | | | | Prepending a default preposition to locative GRAMMAR forms in Ukrainian language Bug: T149550 Change-Id: I4649549dc3c722e53c7ea3accb6747df420e56f7
* Add genitive grammar for SwedishJon Harald Søby2019-11-081-0/+13
| | | | | | Add file for Swedish (sv) to enable {{GRAMMAR:genitive}} in that language. Change-Id: I6175b53a882f8fe6a9ed88e16c7464593c5ce5d3
* Add genitive grammar for NorwegianJon Harald Søby2019-11-042-0/+24
| | | | | | | Add files for Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) to enable {{GRAMMAR:genitive}} for those two languages. Tested in Vagrant. Change-Id: Ib8d84fa24daffde023203df4e8fa1148b52ea975
* Add Russian grammar forms to support WikiversityAmire802018-02-261-0/+2
| | | | Change-Id: I70fcb03db62307116ec96d4c242e6796534b57a1
* Extend grammar rules for Ukraininan languageEugene Gvozdetsky2017-04-261-1/+20
| | | | Change-Id: I2a18acee6a1c4a7462953477da50d57239994f37
* Fix Hebrew grammar transformation for letter HeAmire802017-01-161-1/+1
| | | | | | It must only be transformed in the beginning of the word. Change-Id: Iec6e2032775b9efd92cc2d649944f4892f813b24
* Move the Ukrainian grammar rules from PHP and JS to JSONAmir E. Aharoni2016-12-181-0/+18
| | | | | Bug: T115217 Change-Id: I15a06b07e381cc9074e64e746d22ec51e9e638c4
* Make the code for grammar data processing commonAmir E. Aharoni2016-12-161-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the code for processing JSON files with grammar transformations reusable by different languages and applies the same logic to Russian and Hebrew. It will be done to other languages in further patches. This patch is not supposed to change any functionality, and the tests are intact (except a comment in the test for Hebrew - the class doesn't exist any longer). PHP: * Move the JSON grammar transformation data processing logic from LanguageRu.php to convertGrammar() in Language.php. By default all these data files are supposed to be processed identically, so the code should be common. If there is no JSON data file, nothing new happens. * LanguageRu's own convertGrammar() method is removed. * The LanguageHe class is removed, now that all its functionality is handled by generic JSON data processing in the Language class. LanguageHe.php file is removed from the repo and from autoloading. JavaScript: * Move the JSON grammar transformation data processing logic from ru.js to mediawiki.language.js. * JavaScript grammar code files he.js and ru.js are removed from the repo and from Resources.php, because all the data is in JSON, and the default logic in mediawiki.language.js works for both languages. Bug: T115217 Change-Id: I5e75467121c3d791bb84f9e6fdfcf07c1840f81a
* Make grammar data loadable as an RL module and usable in JSAmir E. Aharoni2016-10-211-0/+57
* Load the data of this variable from a JSON file to the same data structure that ResourceLoader uses for digitTransformTable, pluralRules, etc. * Change the JSON structure to ensure the order of the rules. Otherwise JavaScript processes the keys in a random order. * Delete the grammar code from JS and replace it with the same logic that is used in PHP for processing the data. For now this is done only for Russian. The next step will be to make the PHP and JS data processing logic reusable. Bug: T115217 Change-Id: I6b9b29b7017f958d62611671be017f97cee73415