Skip to content

Commit

Permalink
add kansai-ben tari
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Sep 5, 2024
1 parent 4fa8542 commit d3e863d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ext/js/language/ja/japanese-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,27 @@ export const japaneseTransforms = {
suffixInflection('ゆうたら', 'いったら', [], []),
],
},
'kansai-ben -tari': {
name: 'kansai-ben',
description: '-tari form of kansai-ben terms',
rules: [
suffixInflection('うたり', 'ったり', [], []),
suffixInflection('おうたり', 'あったり', [], []),
suffixInflection('こうたり', 'かったり', [], []),
suffixInflection('ごうたり', 'がったり', [], []),
suffixInflection('そうたり', 'さったり', [], []),
suffixInflection('ぞうたり', 'ざったり', [], []),
suffixInflection('とうたり', 'たったり', [], []),
suffixInflection('どうたり', 'だったり', [], []),
suffixInflection('のうたり', 'なったり', [], []),
suffixInflection('ほうたり', 'はったり', [], []),
suffixInflection('ぼうたり', 'ばったり', [], []),
suffixInflection('もうたり', 'まったり', [], []),
suffixInflection('ろうたり', 'らったり', [], []),
suffixInflection('ようたり', 'やったり', [], []),
suffixInflection('ゆうたり', 'いったり', [], []),
],
},
'kansai-ben -ku': {
name: 'kansai-ben',
description: '-ku stem of kansai-ben adjectives',
Expand Down
9 changes: 9 additions & 0 deletions test/language/japanese-transforms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,15 @@ const tests = [
{term: 'はう', source: 'ほうたら', rule: null, reasons: ['-tara', 'kansai-ben -tara']},
],
},
{
category: '-tari form of kansai-ben terms',
valid: true,
tests: [
{term: '買う', source: '買うたり', rule: null, reasons: ['-tari', 'kansai-ben -tari']},
{term: 'かう', source: 'こうたり', rule: null, reasons: ['-tari', 'kansai-ben -tari']},
{term: 'はう', source: 'ほうたり', rule: null, reasons: ['-tari', 'kansai-ben -tari']},
],
},
];
/* eslint-enable @stylistic/no-multi-spaces */

Expand Down

0 comments on commit d3e863d

Please sign in to comment.