Always Learning

Posted by admin_pnp | about 7 years ago

We had a couple of requests for a feature in the dictionary to suggest that may have been misspelled and we've just deployed this feature to the sandbox.

Currently I've added a suggestion feature to the search API which will automatically suggest words if it can't find a match for the query string put in.

For example***** suggests that the word I was looking for was 'cat'. Works great, but what if I don't want this feature. Currently this is only deployed in the sandbox environment and before we roll it out into production I was wondering whether this feature should always be enabled...

There are a couple of options here:

  1. Automatically suggest words if we don't match anything in the Longman Dictionary.
  2. As above but only if a suggest=true flag is put in the URL.
  3. Have a seperate suggestion/spellchecking API.

Options 1 & 2 would reduce the number of calls to the API. Option 3 seems to be the 'cleanest' way to offer this feature, but it adds an additional step / call.

Personally I think 2 makes most sense, only suggest if asked to suggest... but I'm happy to take requirements from the community. WDYT ?

Blog Categories: 

No votes yet

15517 reads
Always Learning