Skip to content

Commit

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

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

def hiragana_to_katakana(hiragana)
Expand Down

0 comments on commit ebbcb37

Please sign in to comment.