Extension:Josa

{{Extension
 * name       = Josa
 * status     = stable
 * type       = parser function
 * author     = Bae Junehyeon
 * username   = *devunt
 * image      =
 * php        = 5.4+
 * version    = 0.1
 * update     = 2014-01-29
 * mediawiki  =
 * download   = {{WikimediaDownload}}
 * changelog  =
 * description = Automates josa part of Korean postposition process.
 * license    = MIT
 * needs-updatephp = no
 * parameters = yes
 * rights     = yes
 * example    = {{#은는:한글}} -> 한글은
 * phabricator = MediaWiki-extensions-Block All

The Josa extension auto josa (it's pronounced as /dʒo:sa/ or /ʨo:sa/) part of Korean postposition process.

Function names
The function will be one of below:

A Josa function call without any option will be rendered to the word and a josa.

Some special characters are automatically ignored.


 * → 한글은
 * → 위키백과를
 * →  ' 비타민'이
 * → 미디어위키와
 * → 지원아
 * → 정민이가
 * → 학업으로
 * → 100%으로
 * → 글자 Ñ를 (bug)

It is OK that the case in given word is written in English alphabet or ends with a number.


 * → DNA를
 * → ATM은
 * → 119로

But other letters will add parenthesis:


 * → 직원(3명)을(를)

Sometimes results a bug:


 * → 國語을

MediaWiki 1.30+
Argument must be one of those:

The order of the arguments is not matter.

MediaWiki 1.29 or earlier
If second argument is, the base word will be removed.


 * → 을

Any other argument makes base word remain. Technically, PHP determines whether the value is  or not. So  is , See more examples:


 * → 한글을
 * → 한글을
 * → 한글을