Skip to content

Commit

Permalink
[tl] Add tagalog deinflections (#1228)
Browse files Browse the repository at this point in the history
* add noun deinflections

* add remaining affixes

* fix conditions, fix some rules

* restore conditions

* add conditions

* remove comments

* add tests

* fix lint

* add additional deinflections

* add tests and fix

* add -ng ligature

* add additional deinflections

* add missing ika- d to r rule

* fix lint

* fix incorrect deinflections
  • Loading branch information
Casheeew authored Jul 22, 2024
1 parent 850f9d1 commit c3faf44
Show file tree
Hide file tree
Showing 4 changed files with 787 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@
"ext/js/language/sh/serbo-croatian-text-preprocessors.js",
"ext/js/language/sq/albanian-transforms.js",
"ext/js/language/vi/viet-text-preprocessors.js",
"ext/js/language/tl/tagalog-transforms.js",
"ext/js/language/text-processors.js",
"ext/js/language/translator.js",
"ext/js/language/zh/chinese.js",
Expand Down
2 changes: 2 additions & 0 deletions ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {oldIrishTransforms} from './sga/old-irish-transforms.js';
import {removeSerboCroatianAccentMarks} from './sh/serbo-croatian-text-preprocessors.js';
import {albanianTransforms} from './sq/albanian-transforms.js';
import {capitalizeFirstLetter, decapitalize, removeAlphabeticDiacritics} from './text-processors.js';
import {tagalogTransforms} from './tl/tagalog-transforms.js';
import {normalizeDiacritics} from './vi/viet-text-preprocessors.js';
import {isStringPartiallyChinese, normalizePinyin} from './zh/chinese.js';

Expand Down Expand Up @@ -300,6 +301,7 @@ const languageDescriptors = [
...capitalizationPreprocessors,
removeAlphabeticDiacritics,
},
languageTransforms: tagalogTransforms,
},
{
iso: 'tr',
Expand Down
Loading

0 comments on commit c3faf44

Please sign in to comment.