The goal of josaplay is to provide functions to add josa in Korean text. It is useful with Rmarkdown.
# CRAN version
install.packages("josaplay")
# Dev version
install.packages('josaplay', repos = c('https://mrchypark.r-universe.dev', 'https://cloud.r-project.org'))
This is a basic example which shows you how to solve a common problem:
Breaking change from v0.1.3
library(josaplay)
# 과/와
josa("상품", "과")
#> [1] "상품과"
josa("상품", "와")
#> [1] "상품과"
josa("텀블러", "과")
#> [1] "텀블러와"
josa("텀블러", "와")
#> [1] "텀블러와"
# number
josa("145", "이")
#> [1] "145가"
josa("k146", "이")
#> [1] "k146이"
을 / 를
은 / 는
이 / 가
과 / 와
이나 / 나
으로 / 로
아 / 야
이랑 / 랑
이며 / 며
이다 / 다
이가 / 가
- All josa can use
select
param onjosa(textko, select)
but가
is work as only이/가
not이가/가
.
- support only jamo character
- support English letters
- support special character