Korean Sentence Analyser v0.2.3 Substantive View Source

A substantive can be a given name, or a family name

Link to this section Summary

Functions

Find if the word is a family name

Find if the word is a substantive

Find if the word is a substantive, removing any Josa (grammar) attached to the word

Find if the word is a given name

Link to this section Functions

Link to this function

family_name(word, option \\ nil) View Source

Find if the word is a family name

iex> Substantive.family_name("박")
%{"specific_type" => "Family name", "token" => "박", "type" => "Substantive"}

Find if the word is a substantive

iex> Substantive.find("경수")
%{"specific_type" => "Given name", "token" => "경수", "type" => "Substantive"}

Find if the word is a substantive, removing any Josa (grammar) attached to the word

Link to this function

given_name(word, option \\ nil) View Source

Find if the word is a given name

iex> Substantive.given_name("경수")
%{"specific_type" => "Given name", "token" => "경수", "type" => "Substantive"}