-
Notifications
You must be signed in to change notification settings - Fork 45
Description
I couldn't find an example for supporting korean markers.
Some korean markers depend on whether a previous noun ends with a consonant or with a vowel (without a consonant).
With a consonant, we use 은, 이, 을, 과, and without a consonant, we use 는, 가, 를, 와.
Let me assume that I want to translate following sentence:
Do you want to delete a user?
Then it might be translated into 사용자를 삭제하시겠습니까?.
'를' after '사용자' is an object marker. The last character of '사용자' is '자', and it doesn't have a letter at its bottom, so it ends with a vowel (ㅓ), without a consonant.
If we change '사용자' to '계정' (account), the message should be 계정을 삭제하시겠습니까?.
'을' after '계정' is also an object marker. The last character of '계정' is '정', and it has a letter 'ㅇ' at its bottom, so it ends with a consonant.
This is similar to other markers. Their usages depend on whether a previous noun ends with a consonant or not.
If we make '사용자' or '계정' a variable such as $type, then we should have a way to tell whether $type ends wth a consonant or not.
Should this be implemented in custom function like this?
delete-prompt = { KOREAN_ENDS_WITH($type) ->
[consonant] {$type}을 삭제하시겠습니까?
[vowel] {$type}를 삭제하시겠습니까?
}