Add Josa Based on Previous Letter in Korean

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.


josaplay

Travis buildstatus AppVeyor buildstatus Codecov testcoverage Lifecycle:maturing CRANstatus

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("josaplay")

0.1.3 by Chanyub Park, 7 years ago


https://github.com/mrchypark/josaplay


Report a bug at https://github.com/mrchypark/josaplay/issues


Browse source code at https://github.com/cran/josaplay


Authors: Chanyub Park [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports utf8, magrittr

Suggests covr


See at CRAN