Docs: https://hexdocs.pm/ksa.
An attempt to try to get information about Korean text.
Add to mix.exs
def deps do
[
{:ksa, "~> 0.5.0"}
]
end
When you just want to get the stem of the words:
iex> Ksa.analyse("저는 공부하느라고 청소를 못 했어요")
[
%{"공부하느라고" => "공부"},
%{"못" => "못"},
%{"저는" => "저"},
%{"청소를" => "청소"},
%{"했어요" => "하다"}
]
Or if you want to know which type the words are:
iex> Ksa.analyse_with_type("저는 공부하느라고 청소를 못 했어요")
[
%{"공부하느라고" => {"noun", "공부"}},
%{"못" => {"noun", "못"}},
%{"저는" => {"noun", "저"}},
%{"청소를" => {"noun", "청소"}},
%{"했어요" => {"verb", "하다"}}
]