ENIG is an acronym of typical Korean particles "Eun Neun I Ga (은는이가)". Korean postposition particles change their form depending on the pronunciation of the previous consonant. However, in trouble, because figuring out the previous consonant is not an easy problem. Therefore, most of the programmers who handle Korean treat Korean by starting with "SOMETHING은(는) ~~". This seems to be awkward in a sentence like "SOMETHING is(are), Two apple(s)."
ENIG focuses on programmers to handle Korean strings.
You can get a proper Korean particle by giving enigPPP
post word and a Korean postposition particle category.
You can use ENIG without any integration on your code by enigAuto
.
When you give a text like "과자이(가) 두개입니다." to enigAuto
like enigAuto "과자이(가) 두개입니다."
, the function returns "과자가 두개입니다."
- Managing Korean string which involves Korean particle.
- Managing English string which involves plural/singular form.
When you get a message like invalid argument
or invalid character
during the library test, check the language configuration of your shell.
This error does not mean a program bug.
Because of this library handling Hangul itself, the test code should contain Korean characters encoded by UTF-8. However, when your shell's language configuration is not set to Unicode(UTF-8), the compiler assumes the code's encoding as the system's default language setting. This behavior leads the compiler fails to read the code and put the error message like above.
Therefore, you should set your shell's encoding by chcp 65001
for Windows or export LC_ALL=en_US.UTF-8
for *nix platforms before testing the library.