[MODULE] - Spelling correction using Bing Spelling Correction API
Please describe the module you would like to add to bricks Besides a free spelling correction module, we should also offer a premium function for this type of module. This is possible with the Bing Spelling Correction service, which is included in every Azure Bing service plan.
Do you already have an implementation? Something like:
from requests
def bing_spelling_correction(record: Dict[str, Any]) -> str:
text = record[YOUR_ATTRIBUTE].text
req = request.post("https://api.bing.microsoft.com/v7.0/spellcheck/{text})
return req.text
Additional context There might be other service providers that we could use for this. Feel free to share anything you find here.
Found an alternative with a free plan: https://textgears.com/
Implemented with #249
I found a small issue in the refinery: YOUR_ATTRIBUTE and YOUR_LABEL change to ATTRIBUTE and LABEL