This Azure Function takes a string input from an HTTP Get request and passes this to Bing Spell Check in "Proof" mode, parses the response & returns the suggested correction from the service.
Add a local.settings.json file in the project root with the following configurations (your Market may be different and the valid modes are 'proof' & 'spell' depending on what you need).':
- "SubscriptionKey": "YOUR-BING-SPELLCHECK-KEY""
- "Endpoint": "https://api.bing.microsoft.com",
- "Path": "/v7.0/spellcheck?",
- "Market": "en-US",
- "Mode": "proof"
- Some of this code was upcycled from other's works out on the net.