Welcome Guest, Not a member yet? Register   Sign In
Improved Inflector singular() and plural() functions
#3

[eluser]milkboy[/eluser]
The CI helper just checks a few of the most common rules. This one checks many more. Additionally as all the rules are included in a config file, they can easily be extended. If you notice a word is not being processed correctly, just add it to the config file. If anybody can't figure out how to implement or amend this script, just let me know (but should be logical with very basic CI knowledge).

As a final point, as the rules are in a config file, this could be used as a starting point to create rules to work with other languages.

Here are some words (singular form|plural form), CI does not process correctly:

quiz|quizzes
ox|oxen
mouse|mice
matrix|matrices
index|indices
person|people
man|men
child|children
tomato|tomatoes
alias|aliases
crisis|crises
tax|taxes
analysis|analyses
atlas|atlases
loaf|loaves
octopus|octopuses
equipment|equipment
information|information
media|media
Portuguese|Portuguese
rice|rice
tuna|tuna


Messages In This Thread
Improved Inflector singular() and plural() functions - by El Forum - 04-30-2010, 01:24 PM
Improved Inflector singular() and plural() functions - by El Forum - 05-01-2010, 03:44 AM
Improved Inflector singular() and plural() functions - by El Forum - 05-01-2010, 04:26 AM
Improved Inflector singular() and plural() functions - by El Forum - 11-28-2010, 08:39 PM
Improved Inflector singular() and plural() functions - by El Forum - 05-11-2012, 01:37 AM
Improved Inflector singular() and plural() functions - by El Forum - 05-11-2012, 03:24 AM
Improved Inflector singular() and plural() functions - by El Forum - 05-11-2012, 04:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB