Case insensitive dictionary search with enchant
<p>Is there a way to do a case-insensitive search in enchant?</p>

<p>I am trying to achieve the following:</p>

<pre><code>import enchant
d = enchant.DictWithPWL("en_US","mywords.txt")

d.check("Alexandria")
True
d.check("alexandria")
False
</code></pre>

<p>Both cases should return True</p>

<p>As per you example, it should return <code>True</code>.</p>

<pre><code>import enchant
d = enchant.DictWithPWL("en_US","/home/user/yourscript.py")

a=d.check("import")
print(a)
a=d.check("Import")
print(a)
</code></pre>

<p>Output:</p>

<pre><code>True
True
</code></pre>

<p>You can try following link, you may get some other alternatives to achieve this <a href="http://pythonhosted.org/pyenchant/tutorial.html" rel="nofollow">http://pythonhosted.org/pyenchant/tutorial.html</a></p>

python