bricks icon indicating copy to clipboard operation
bricks copied to clipboard

[MODULE] - Spelling correction using Bing Spelling Correction API

Open LeonardPuettmann opened this issue 2 years ago • 3 comments

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.

LeonardPuettmann avatar Feb 20 '23 10:02 LeonardPuettmann

Found an alternative with a free plan: https://textgears.com/

LeonardPuettmann avatar Feb 20 '23 10:02 LeonardPuettmann

Implemented with #249

LeonardPuettmannKern avatar Apr 25 '23 08:04 LeonardPuettmannKern

I found a small issue in the refinery: YOUR_ATTRIBUTE and YOUR_LABEL change to ATTRIBUTE and LABEL

SvenjaKern avatar Jul 21 '23 16:07 SvenjaKern