Case 1
Actual:
string = 'おつまみ'
words = Ve.in(:ja).words(string).map(&:word)
=> ["お", "つまみ"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Prefix, Ve::PartOfSpeech::Verb]
Expected:
words = Ve.in(:ja).words(string).map(&:word)
=> ["おつまみ"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Noun]
Case 2
Actual:
string = 'やぐら'
words = Ve.in(:ja).words(string).map(&:word)
=> ["や", "ぐら"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Postposition, Ve::PartOfSpeech::Noun]
Expected:
words = Ve.in(:ja).words(string).map(&:word)
=> ["やぐら"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Noun]
Case 3
Actual:
string = '煮っころがし'
words = Ve.in(:ja).words(string).map(&:word)
=> ["煮っ", "ころ", "が", "し"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Verb, Ve::PartOfSpeech::Noun, Ve::PartOfSpeech::Postposition, Ve::PartOfSpeech::Verb]
Expected:
words = Ve.in(:ja).words(string).map(&:word)
=> ["煮っころがし"]
parts_of_speeches = Ve.in(:ja).words(string).map(&:part_of_speech)
=> [Ve::PartOfSpeech::Noun]
Case 1
Actual:
Expected:
Case 2
Actual:
Expected:
Case 3
Actual:
Expected: