https://github.com/thesurlydev/pluralizer-cli
Pluralize or singularize words
https://github.com/thesurlydev/pluralizer-cli
Last synced: about 1 year ago
JSON representation
Pluralize or singularize words
- Host: GitHub
- URL: https://github.com/thesurlydev/pluralizer-cli
- Owner: thesurlydev
- License: apache-2.0
- Created: 2022-06-26T19:22:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T23:56:54.000Z (almost 4 years ago)
- Last Synced: 2024-05-03T06:43:36.137Z (about 2 years ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pluralizer-cli
Command line wrapper for the [pluralizer](https://lib.rs/crates/pluralizer) crate lib.
## usage
### single word
```shell
echo "box" | pluralizer-cli
```
will result in:
```shell
boxes
```
### multiple words
```shell
pluralizer-cli << EOF
box
fox
EOF
```
will result in:
```shell
boxes
foxes
```
### file
Given a file with the following contents:
```shell
food
house
fizz
way
baby
```
The command:
```shell
cat test | pluralizer-cli
```
will result in:
```shell
foods
houses
fizzes
ways
babies
```
### file append
Given a file with one word per line, the command:
```shell
cat test | pluralizer-cli | sponge -a test
```
will append the original file, test, with the pluralized words added.