what i'm trying to do is get some korean verb or adjective and turn it to it's dictionary form. So let's say that someone typed '추워요', which is the adjective for cold. It's 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.