# Python V3 query for getting results of mis-spelled words search

**URL:** <https://forum.weaviate.io/t/python-v3-query-for-getting-results-of-mis-spelled-words-search/4304>\
**Category:** Support\
**Tags:** developer-experience, python\
**Created:** [September 25, 2024, 8:31am UTC](https://forum.weaviate.io/t/python-v3-query-for-getting-results-of-mis-spelled-words-search/4304 "2024-09-25T08:31:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveenkasani](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/praveenkasani/32/2402_2.png) [@Praveenkasani](https://forum.weaviate.io/u/Praveenkasani)\
**Post date:** [September 25, 2024, 8:31am UTC](https://forum.weaviate.io/t/python-v3-query-for-getting-results-of-mis-spelled-words-search/4304/1 "2024-09-25T08:31:50Z")

</div>

Hi Team,

I want to fetch results for mis-spelled words i.e. when a user types ‘sprate’ instead of ‘sprite’ search, he has to see the results for ‘sprite’. Another example would be when user types ‘man’ instead of ‘men’, he has to see results for ‘men’.

I tried few examples in python using ‘with\_near\_text’ and the below query but couldn’t get the results that I’m expecting. Could you please let me know what exactly is the query for my usecase?

# Define the near\_text query

near\_text = {  
“concepts”: [“man”], # Correct the spelling here  
}

# Perform the query

result = (  
client.query  
.get(“TGIDICTIONARY3”, [“answerlabels”,“questionlabel”] )  
.with\_near\_text(near\_text)  
.do()  
)

# Print the results

print(result)

Thanks for your Help in Advance !!!

---

<div class="post-metadata">

**Author:** ![Shahin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/shahin/32/8085_2.png) [@Shahin](https://forum.weaviate.io/u/Shahin)\
**Post date:** [September 25, 2024, 12:53pm UTC](https://forum.weaviate.io/t/python-v3-query-for-getting-results-of-mis-spelled-words-search/4304/2 "2024-09-25T12:53:22Z")

</div>

Hi @Praveenkasani,

Welcome to our community, and it’s lovely to have you here!

Based on what you described, you can leverage the Weaviate `text-spellcheck` module to handle cases where a user types a misspelled word.

You can explore more here: [Weaviate Spellcheck Module](https://weaviate.io/developers/weaviate/modules/spellcheck)

Also, you can experiment with `near_text` certainty to fine-tune the matching accuracy.
