Ability to map misspellings to other words | Community
Skip to main content
Level 2
May 3, 2022
Solved

Ability to map misspellings to other words

  • May 3, 2022
  • 2 replies
  • 772 views

As a site visitor, I want to be shown a "did you mean" word when I have misspelled a word within search.


GIVEN I have entered a popular misspelled word (for example: caronavirus)

  1. WHEN the search results were returned THEN I might see text like "Did you mean coronavirus?" and when clicked able to show results for the correct search term

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ravi_Pampana

Hi,

 

I think you need to handle this via custom javascript, where you can add some mapping of the misspelled words with the correct works and if search term matches with the list of misspelled words you can show the correct word. 

 

The list can be updated eventually on new terms which you figure out by user search terms.

2 replies

Ravi_Pampana
Community Advisor
Ravi_PampanaCommunity AdvisorAccepted solution
Community Advisor
May 3, 2022

Hi,

 

I think you need to handle this via custom javascript, where you can add some mapping of the misspelled words with the correct works and if search term matches with the list of misspelled words you can show the correct word. 

 

The list can be updated eventually on new terms which you figure out by user search terms.

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 4, 2022

As per the W3 spec, you can use the spellcheck attribute on HTML input fields (such as <input> and <textarea>) to toggle browser's built-in spell checker on or off. It has the following values:

  • spellcheck="true" or spellcheck — enables spell checker;
<input type="text" spellcheck="true" />
<textarea spellcheck="true"></textarea>