search fire star recently

wordsmith

Handles pluralization, ordinalizing words, etc.

0.2.0 Latest release Yanked release released
luckyframework/wordsmith
4 1

Wordsmith

Wordsmith is a library for pluralizing, ordinalizing, singularizing and doing other fun and useful things with words.

Installation

Add this to your application's shard.yml:

dependencies:
  wordsmith:
    github: luckyframework/wordsmith
    version: ~> 0.2

Usage

require "wordsmith"

Wordsmith::Inflector.pluralize("word") # "words"
Wordsmith::Inflector.singularize("categories") # "category"

Contributing

  1. Fork it ( https://github.com/crystal-loot/wordsmith/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Testing

To run the tests:

  • Run the tests with crystal spec

Contributors

Thanks & attributions

  • Inflector is based on Rails. Thank you to the Rails team!
wordsmith:
  github: luckyframework/wordsmith
  version: ~> 0.2.0

Authors

  • Paul Smith
  • Flinn Mueller

License

MIT

Crystal

0.26.1

Dependencies 0

Development Dependencies 0

Dependents 6

Last synced .