Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrbrmstr/pluralize
An R package to "Pluralize and Singularize Any Word"
https://github.com/hrbrmstr/pluralize
plural r rstats singularize
Last synced: 10 days ago
JSON representation
An R package to "Pluralize and Singularize Any Word"
- Host: GitHub
- URL: https://github.com/hrbrmstr/pluralize
- Owner: hrbrmstr
- License: other
- Created: 2016-01-06T23:23:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T22:53:23.000Z (over 1 year ago)
- Last Synced: 2024-10-12T21:24:15.499Z (25 days ago)
- Topics: plural, r, rstats, singularize
- Language: JavaScript
- Homepage:
- Size: 217 KB
- Stars: 62
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: rmarkdown::github_document
editor_options:
chunk_output_type: console
---
```{r pkg-knitr-opts, include=FALSE}
hrbrpkghelpr::global_opts()
``````{r badges, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::stinking_badges()
``````{r description, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::yank_title_and_description()
```## What's Inside The Tin
The following functions are implemented:
```{r ingredients, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::describe_ingredients()
```## Installation
```{r install-ex, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::install_block()
```## Usage
```{r lib-ex}
library(pluralize)# current version
packageVersion("pluralize")```
```{r ex-01}
pluralize('test')singularize('test')
singularize(c("boats", "houses", "cats", "rivers"))
pluralize(singularize(c("boats", "houses", "cats", "rivers")))
singularize(c("buses", "wishes", "pitches", "boxexs"))
pluralize(singularize(c("buses", "wishes", "pitches", "boxexs")))
singularize(c("pennies", "spies", "babies", "cities", "daisies"))
pluralize(singularize(c("pennies", "spies", "babies", "cities", "daisies")))
singularize(c("sheep", "fish", "deer", "species", "aircraft"))
pluralize(singularize(c("sheep", "fish", "deer", "species", "aircraft")))
pluralize('test', 5)
pluralize('test', 5, TRUE)
pluralize('regex')
add_plural_rule("gex", "gexii")
pluralize('regex')
singularize('singles')
add_singular_rule("singles", "singular")
singularize('singles')
pluralize("irregular")
pluralize(c("woman", "man", "child", "tooth", "foot", "person", "leaf"))
singularize(c("woman", "man", "child", "tooth", "foot", "person", "leaf"))
add_irregular_rule("irregular", "regular")
pluralize("irregular")
pluralize("paper")
add_uncountable_rule("paper")
pluralize("paper")
```### pluralize Metrics
```{r cloc, echo=FALSE}
cloc::cloc_pkg_md()
```## Code of Conduct
Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.