The SentenceSaver was a project for the DubHacks 2022 hackathon at the University of Washington.
- Correct spelling and grammatical errors using the Sapling.AI API (https://sapling.ai/api)
- Return links to grammar-learning resources based on the types of mistakes made in the original writing
We designed the backend using the Flask Python framework to create a local server and designed the frontend using vanilla HTML/CSS. We also used the Sapling.AI API to return both the corrected writing and the grammatical error types for the recommendation system. The recommendation system was hard-coded to return specific links for related error codes for a proof of concept.
One of the more difficult tasks was collecting the information we needed for the recommendation system from the API. Sapling.AI provided codes relating to the mistakes that were seen in the input (eg. "PUNCT" for punctuation error), but sometimes incorrectly identified or generalized the errors (eg. "OTHER" when there should be a specific error). Another challenge we faced was attempting to build a user data collection/visualization feature. We started by building functions for a SQLite database, but we faced multiple bugs that we were not able to clear before the hackathon time limit. As a result, we presented only our core functions.
- Complete the data collection/visualization feature to allow users to see what grammatical problems were most common in their writing
- Provide a more scalable solution for personalized recommendations that does not involve as much hard-coding
- Make sure you have Python 3 downloaded on your device and start a new virtual environment
- Download all the dependencies in requirements.txt into your virtual environment
- Install Flask (https://flask.palletsprojects.com/en/2.2.x/installation/#install-flask) using Python 3 onto your activated venv
- Clone the repository to your local device
- Get a personal API key from Sapling.AI (https://sapling.ai/api) and replace the indicated string at line 74 of app.py
- Go to the directory that the repo is saved to in the terminal and run the command "flask --app app run" without the quotation marks
- Once loaded, go to the provided link and try it out!
- Daniel Kim (https://github.com/DanielMK01)
- David Gim (https://github.com/davidgim)
- Edward Lee (https://github.com/EdwardLee14)
- John Lee (https://github.com/Johnslee123)

