Aqueduct.Extensions.Inflector.InflectorRule.Apply C# (CSharp) Method

Apply() public method

Applies the specified word.
public Apply ( string word ) : string
word string The word.
return string
            public string Apply(string word)
            {
                if (!regex.IsMatch(word))
                    return null;

                string replace = regex.Replace(word, replacement);
                if (word == word.ToUpper())
                    replace = replace.ToUpper();

                return replace;
            }
        }
Inflector.InflectorRule