diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-05 02:43:04 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-23 17:45:44 +0200 |
commit | 17003189888694da51d840dcf0464355bb342a4c (patch) | |
tree | 4d630690268aec6bee39e73ece727b3650a5cf28 /ext/mixed/js | |
parent | 1bf48d24ef4a0a1ed09d8ec6acc74ff5f78dd6c2 (diff) |
remove unneeded feature
Unidic actually has a field for the base form of the input
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/japanese.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js index 78c419b2..1201e524 100644 --- a/ext/mixed/js/japanese.js +++ b/ext/mixed/js/japanese.js @@ -102,11 +102,7 @@ function jpDistributeFuriganaInflected(expression, reading, source) { const shortest = Math.min(source.length, expression.length); const sourceHiragana = jpKatakanaToHiragana(source); const expressionHiragana = jpKatakanaToHiragana(expression); - while ( - stemLength < shortest && - // sometimes an expression can use a kanji that's different from the source - (!jpIsKana(source[stemLength]) || (sourceHiragana[stemLength] === expressionHiragana[stemLength])) - ) { + while (stemLength < shortest && sourceHiragana[stemLength] === expressionHiragana[stemLength]) { ++stemLength; } const offset = source.length - stemLength; |