summaryrefslogtreecommitdiff
path: root/vendor/github.com/jinzhu/inflection/README.md
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-03-09 17:47:56 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-12-01 22:08:04 +0100
commitb1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch)
tree9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/jinzhu/inflection/README.md
parent[chore] update URLs to forked source (diff)
downloadgotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/jinzhu/inflection/README.md')
-rw-r--r--vendor/github.com/jinzhu/inflection/README.md55
1 files changed, 0 insertions, 55 deletions
diff --git a/vendor/github.com/jinzhu/inflection/README.md b/vendor/github.com/jinzhu/inflection/README.md
deleted file mode 100644
index a3de33614..000000000
--- a/vendor/github.com/jinzhu/inflection/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# Inflection
-
-Inflection pluralizes and singularizes English nouns
-
-[![wercker status](https://app.wercker.com/status/f8c7432b097d1f4ce636879670be0930/s/master "wercker status")](https://app.wercker.com/project/byKey/f8c7432b097d1f4ce636879670be0930)
-
-## Basic Usage
-
-```go
-inflection.Plural("person") => "people"
-inflection.Plural("Person") => "People"
-inflection.Plural("PERSON") => "PEOPLE"
-inflection.Plural("bus") => "buses"
-inflection.Plural("BUS") => "BUSES"
-inflection.Plural("Bus") => "Buses"
-
-inflection.Singular("people") => "person"
-inflection.Singular("People") => "Person"
-inflection.Singular("PEOPLE") => "PERSON"
-inflection.Singular("buses") => "bus"
-inflection.Singular("BUSES") => "BUS"
-inflection.Singular("Buses") => "Bus"
-
-inflection.Plural("FancyPerson") => "FancyPeople"
-inflection.Singular("FancyPeople") => "FancyPerson"
-```
-
-## Register Rules
-
-Standard rules are from Rails's ActiveSupport (https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflections.rb)
-
-If you want to register more rules, follow:
-
-```
-inflection.AddUncountable("fish")
-inflection.AddIrregular("person", "people")
-inflection.AddPlural("(bu)s$", "${1}ses") # "bus" => "buses" / "BUS" => "BUSES" / "Bus" => "Buses"
-inflection.AddSingular("(bus)(es)?$", "${1}") # "buses" => "bus" / "Buses" => "Bus" / "BUSES" => "BUS"
-```
-
-## Contributing
-
-You can help to make the project better, check out [http://gorm.io/contribute.html](http://gorm.io/contribute.html) for things you can do.
-
-## Author
-
-**jinzhu**
-
-* <http://github.com/jinzhu>
-* <wosmvp@gmail.com>
-* <http://twitter.com/zhangjinzhu>
-
-## License
-
-Released under the [MIT License](http://www.opensource.org/licenses/MIT).