toPinyin: Convert a chinese text to pinyin format.

Description Usage Arguments Value Author(s) Examples

View source: R/toPinyin.R

Description

Convert a chinese text to pinyin format.

Usage

1
toPinyin(string, capitalize = FALSE)

Arguments

string

A character vector.

capitalize

Whether to capitalize the first letter of each word.

Value

A character vector in pinyin format.

Author(s)

Jian Li <rweibo@sina.com>

Examples

1
toPinyin("the quick red fox jumps over the lazy brown dog")

tmcn documentation built on Aug. 4, 2019, 3 p.m.

Related to toPinyin in tmcn...