GrammarQuery was created using a variety of technologies. The website was built using HTML5, CSS3, and JavaScript. We hosted the website using GitHub Pages. The APIs we used include the Web Speech API and Grammar Bot API to add the functionality to the website.
The Web Speech API enables you to incorporate voice data into web apps. The Web Speech API has two parts: SpeechSynthesis (Text-to-Speech), and SpeechRecognition (Asynchronous Speech Recognition.)
- Web SpeechThe implementation of the Web Speech API was a difficult challenge. We created a "Transcriber" class that handles the functionality of the API. This ultimately returns a String, that is composed of the user's speech input.
The GrammarBot API provides spelling and grammar checking capabilities to your application. Submit text and receive a JSON response with potential errors and suggested corrections.
- Grammar BotThis API handled the grammar corrections of the user's input. It returns an array with the present correction, if there are no corrections present, "Correct" is appended to the array. The biggest difficulty we faced with this API, was being able to display the corrections for the user to see