summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/SpellCorrect.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-09 17:42:02 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-09 17:42:02 +0200
commit9b9de3a9c72f82e4d58b54e87e266d7048fe2599 (patch)
treef97fd858e344c8d3eec0d6d20b0360a0afaa9bb4 /DiscoBot/Auxiliary/SpellCorrect.cs
parentbdd094926815196802c7d0bdad089fee9791abf4 (diff)
parent1194cf18735939e525df4248c5a3424789fde60d (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/Auxiliary/SpellCorrect.cs')
-rw-r--r--DiscoBot/Auxiliary/SpellCorrect.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/DiscoBot/Auxiliary/SpellCorrect.cs b/DiscoBot/Auxiliary/SpellCorrect.cs
index 244914b..4f4f7d0 100644
--- a/DiscoBot/Auxiliary/SpellCorrect.cs
+++ b/DiscoBot/Auxiliary/SpellCorrect.cs
@@ -65,6 +65,10 @@
public double CompareExact(string s, string q)
{
+
+ s = s.ToLower();
+ q = q.ToLower();
+
int i, j;
const double Match = 3.0;
const double Gap = -2.0;