Type: | Package |
Title: | Convert Words Between UK and US English |
Version: | 0.1.0 |
Description: | Functions for converting between UK and US spellings of English words. |
URL: | https://github.com/bldavies/uk2us |
BugReports: | https://github.com/bldavies/uk2us/issues |
Depends: | R (≥ 2.10) |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.1.1 |
NeedsCompilation: | no |
Packaged: | 2021-02-18 06:42:26 UTC; bldavies |
Author: | Benjamin Davies |
Maintainer: | Benjamin Davies <dev@bldavies.com> |
Repository: | CRAN |
Date/Publication: | 2021-02-19 10:10:02 UTC |
Convert words from UK to US English
Description
convert_uk2us
converts a vector of words from UK to US English.
Usage
convert_uk2us(x, crosswalk = uk2us::ukus_crosswalk)
Arguments
x |
Vector of words to convert. |
crosswalk |
Data frame with columns |
Value
A vector of converted words.
See Also
Examples
convert_uk2us(c("centre", "colour", "colourize"))
Convert words from US to UK English
Description
convert_us2uk
converts a vector of words from US to UK English.
Usage
convert_us2uk(x, crosswalk = uk2us::ukus_crosswalk)
Arguments
x |
Vector of words to convert. |
crosswalk |
Data frame with columns |
Value
A vector of converted words.
See Also
Examples
convert_us2uk(c("center", "color", "colorize"))
Crosswalk between UK and US English spellings
Description
Data frame containing correspondence between UK and US English spellings.
Usage
data(ukus_crosswalk)
Format
Data frame with columns
- uk
UK English spelling
- us
US English spelling