wordsmith

Handles pluralization, ordinalizing words, etc
0.1.1 released

LuckyInflector

This project is still new. Guides will be posted when things are more complete.

Installation

Add this to your application's shard.yml:

dependencies:
  lucky_inflector:
    github: luckyframework/lucky_inflector

Usage

require "lucky_inflector"

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

Contributing

  1. Fork it ( https://github.com/luckyframework/lucky_inflector/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.1.1
License MIT
Crystal 0.24.1

Authors

Dependencies 0

Development Dependencies 0

Last synced .
search fire star recently