Korean Sentence Analyser v0.3.1 KSA.Grammar View Source
Matches words that remove certain grammar that can be added to the end of words 음으로, 까지, 부터 etc Also removes certain grammar words like 중 (during), 내 (inside)
Link to this section Summary
Functions
Find a word when it has a Grammar ending
Remove certain verb patterns that otherwise wouldn't match
Link to this section Functions
Link to this function
find(word) View Source
Find a word when it has a Grammar ending
iex> KSA.Grammar.find("지역내")
[
%{
"specific_type" => "Noun",
"token" => "지역",
"type" => "Noun"
},
%{
"specific_type" => "Grammar",
"token" => "내",
"type" => "Grammar"
}
]
Link to this function
remove(list) View Source
Remove certain verb patterns that otherwise wouldn't match
iex> KSA.Grammar.remove(["마실", "수", "있다"])
["마시"]
iex> KSA.Grammar.remove(["마실", "수도", "있다"])
["마시"]