-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
import InflectorKit
let inflector = StringInflector.default
inflector.addPluralRule(#"^(equipment)$"#, replacement: #"$1s"#)
for singular in ["Equipment", "equipment"] {
print("\(singular) → \(singular.pluralized)")
}
/*
Prints:
Equipment → Equipments
equipment → equipment
*/
Looks like it's because there's an uncountable rule in the default inflector that isn't being overridden/superseded.
Metadata
Metadata
Assignees
Labels
No labels