Learn R Programming

pinyin (version 1.1.6)

pydic: Load a Pinyin library

Description

Load a Pinyin library

Usage

pydic(method = c("quanpin", "tone", "toneless"), multi = FALSE, 
    only_first_letter = FALSE, dic = c("pinyin", "pinyin2"))

Arguments

method

character. The value can be:

  • 'quanpin', for the standard form of pinyin (tones above letters),

  • 'tone', for tones expressed with numbers,

  • 'toneless', without tones

multi

logical. Whether display multiple pronounciations of a Chinese character or only the first pronounciation.

only_first_letter

logical. Wheter only the first letter in pinyin.

dic

character. Choose the dictionary.

Value

character. a Pinyin library.

Examples

Run this code
# NOT RUN {
pydic()
# }

Run the code above in your browser using DataLab