diff options
Diffstat (limited to 'DiscoBot/Auxiliary/SpellCorrect.cs')
-rw-r--r-- | DiscoBot/Auxiliary/SpellCorrect.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/DiscoBot/Auxiliary/SpellCorrect.cs b/DiscoBot/Auxiliary/SpellCorrect.cs index 4f4f7d0..01cce62 100644 --- a/DiscoBot/Auxiliary/SpellCorrect.cs +++ b/DiscoBot/Auxiliary/SpellCorrect.cs @@ -10,6 +10,11 @@ public override int Compare(string x, string y) { + return CompareEasy(x, y); + } + + public static int CompareEasy(string x, string y) + { if (string.IsNullOrEmpty(x)) { throw new ArgumentException("message", nameof(x)); @@ -47,7 +52,7 @@ return score + 1; } - return 100000 - (int)(this.CompareExact(x, y) * 1000.0); + return 100000 - (int)(CompareExact(x, y) * 1000.0); /*if (y.Contains(x)) return 6;*/ } @@ -63,7 +68,7 @@ throw new NotImplementedException(); } - public double CompareExact(string s, string q) + public static double CompareExact(string s, string q) { s = s.ToLower(); |