Skip to content

Commit

Permalink
Making InflectorExtension methods to add rules public as per #402 (co…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-i committed May 7, 2015
1 parent 3701614 commit 053ab63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Humanizer/InflectorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,23 @@ public string Apply(string word)
}
}

private static void AddIrregular(string singular, string plural)
public static void AddIrregular(string singular, string plural)
{
AddPlural("(" + singular[0] + ")" + singular.Substring(1) + "$", "$1" + plural.Substring(1));
AddSingular("(" + plural[0] + ")" + plural.Substring(1) + "$", "$1" + singular.Substring(1));
}

private static void AddUncountable(string word)
public static void AddUncountable(string word)
{
Uncountables.Add(word.ToLower());
}

private static void AddPlural(string rule, string replacement)
public static void AddPlural(string rule, string replacement)
{
Plurals.Add(new Rule(rule, replacement));
}

private static void AddSingular(string rule, string replacement)
public static void AddSingular(string rule, string replacement)
{
Singulars.Add(new Rule(rule, replacement));
}
Expand Down

0 comments on commit 053ab63

Please sign in to comment.