Description
Add Josa Based on Previous Letter in Korean
Description
Josa in Korean is often determined by judging the previous word. When writing reports using Rmd, a function that prints the appropriate investigation for each case is helpful. The 'josaplay' package then evaluates the previous word to determine which josa is appropriate.
README.md
josaplay
The goal of josaplay is to provide functions to add josa in Korean text. It is useful with Rmarkdown.
Installation
NOT YET ON CRAN
You can install the released version of josaplay from CRAN with:
install.packages("josaplay")
And the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("mrchypark/josaplay")
Example
This is a basic example which shows you how to solve a common problem:
library(josaplay)
jsp_gwawa("상품")
#> [1] "상품과"
jsp_gwawa("텀블러")
#> [1] "텀블러와"
jsp_eunneun("사랑")
#> [1] "사랑은"
jsp_eunneun("탁자")
#> [1] "탁자는"
jsp_iga("고객")
#> [1] "고객이"
jsp_iga("모니터")
#> [1] "모니터가"
jsp_eulleul("패키지")
#> [1] "패키지를"
jsp_eulleul("컵")
#> [1] "컵을"
jsp_iga("145")
#> [1] "145가"
jsp_iga("k146")
#> [1] "k146이"
Todo
- support only jamo character
- support English letters
- support special character.