Foobar
Foobar is a Python library for dealing with word pluralization.
Installation
Use the package manager pip to install foobar.
pip install foobar
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
Maurel is going home tomorrow
Usage
import foobar
from operator import ittemgetter
products = {"Hedphone": 55.90, "Usb drive": 12.30}
sort_by_price = sorted(products.items(), key=ittemgetter(1))
# returns 'words'
foobar.pluralize('word')
# returns 'geese'
foobar.pluralize('goose')
# returns 'phenomenon'
foobar.singularize('phenomena')
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.