Skip to content

Commit

Permalink
Fix syllable range include small a i u etc
Browse files Browse the repository at this point in the history
  • Loading branch information
myokoym committed Oct 6, 2012
1 parent 82cf759 commit cae144b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mecab-syllable/syllable.rb
Expand Up @@ -42,7 +42,7 @@ def split(text)
end end


def select_syllable(kana) def select_syllable(kana)
hiragana_to_katakana(kana).gsub(/[^アイウエオカ-モヤユヨラ-ロワヲンヴー]/, "").split(//) hiragana_to_katakana(kana).gsub(/[^ァ-モヤユヨ-ヴー]/, "").split(//)
end end


def hiragana_to_katakana(hiragana) def hiragana_to_katakana(hiragana)
Expand Down

0 comments on commit cae144b

Please sign in to comment.