inflection icon indicating copy to clipboard operation
inflection copied to clipboard

A port of Ruby on Rails' inflector to Python

Results 36 inflection issues
Sort by recently updated
recently updated
newest added

underscore function will always alter variable assigments True/False, like so: ``` >>> inflection.underscore("snakeCase = True") 'snake_case = true' ``` i think it would make sense to have something like _uppercase_first_letter_...

It would be nice to have a `indefinitize` function to add the correct indefinite article: ``` indefinitize("child") == "a child" indefinitize("element") == "an element" indefinitize("universe") == "a universe" indefinitize("undisclosed recipient")...

All the words that has 'our' in it, is changed to 'my'. `singularize('flour')` output: 'flmy' `singularize('your')` output: 'ymy'

Hi, Thank you for creating nice library. I Just add Python3.9 😉

I was wondering if there would be a case for having a version of `pluralize()` that could automatically decide on whether to pluralise things based on a count similar to...

Could this be included as a new feature that works for "1st", "2nd", "3rd", "4th", etc.

A little feature I added to one of my projects because I like my acronyms capitalized and I thought, why not share it with everyone else ? Let me know...

See [comment](https://github.com/jpvanhal/inflection/issues/44#issuecomment-750732596) on #44. Missing from the SDist, and therefore the wheel. So any usage of MyPy downstream looks like this currently: ``` ...:8: error: Cannot find implementation or library...

'diabetes' is treated as a plural form. and changes the word to 'diabete'.