flect
flect copied to clipboard
An inflection engine for golang
### Description #### Description Consider the example program: ``` package main import ( "fmt" "github.com/gobuffalo/flect" ) func main() { orig := "CNS" result := flect.Pluralize(orig) fmt.Printf("plural of %s is: %s\n",...
### Description It would be nice if this package also supported singlular/plural verb inflection. For example "There is/are". BTW, this Perl package is a great reference implementation for all forms...
Hi, is it possible to remove the testify versions in the go.mod file? This prevents apps that use flect from specifying their own versions. My preference with `go.mod` is to...
### What is being done in this PR? Fixes #78 Add pluralization rule for the word 'lens'. ### What are the main choices made to get to this solution? Without...
### Description #### Description Both `Singularize` and `Pluralize` inflections for the word "lens" are incorrect. #### Expected Behavior ```go flect.Singularize("lenses") -> lens flect.Pluralize("lens") -> lenses ``` #### Actual Behavior ```go...
### What is being done in this PR? pluralization for words ending in po -> pos ### What are the main choices made to get to this solution? Its hard...
### Description #### Description The words ending with "ea" are not pluralized correctly. ``` func main() { fmt.Println(strings.ToLower(flect.Pluralize("area"))) fmt.Println(strings.ToLower(flect.Pluralize("idea"))) } ``` return ``` area idea ``` #### Expected Behavior return...