Search Spellchecker

Our spellchecker automatically corrects minor typos in user search queries to help them find the right products, even when the query is not perfectly typed.

The spellchecker works by comparing the user’s query to words in textual attributes columns in your product feed (which serves as the dictionary). If it finds a word in the feed that is within a Levenshtein distance of 1 (meaning only one character is different - added, removed, replaced, or transposed/swapped with an adjacent character), it will automatically correct the query to the closest matching product term.

This ensures accurate results while avoiding aggressive or incorrect corrections.

Examples:

  • aple → apple (insert 1 letter)
  • adddress → address (delete 1 letter)
  • njke → nike (replace 1 letter)
  • samsnug → samsung (transpose 2 adjacent letters)

Note: The spellchecker doesn't offer to change the first letter of a word

Limitations

  • Available only in English. The locale sent in the API request can't include other languages.