Destructuring Korean characters

Viewed 44

What I'm trying to do is get a Korean verb or adjective and turn it to its dictionary form. So let's say that someone typed '추워요', which is the adjective for cold. Its dictionary form is '춥다'. Is there a way that I can do something like:

"Hey, if it ends in '워요' append a 'ㅂ' to the character right before it".

Specifically that part of appending, is there a way to do something like that?

Like 가 + ㅆ = 갔.

I'm using Javascript but I'm open to try another language if it's easier to do it.

0 Answers
Related