Hackathon project for WaffleHacks 2024
Write "equal", inclusive text that is welcoming to everyone:
Promoting diversity & inclusion!
git clone https://github.com/willzeng274/equill.gitor alternatively, download the repository as a zip.
Developer environment setup:
bun install
bunx tailwindcss -i ./src/input.css -o ./src/output.css --watch-
go to
chrome://extensions. -
Toggle developer mode (this should be at the top right of the page).
-
Find the "Load unpacked" button positioned at the top left of the page.
-
Select the "src" folder.
-
Extension is now loaded. Pinning the extension is recommended for ease of usage.
- Ability to edit your text in real time and improve your language to ensure that any non-inclusive text is flagged.
- Change the settings to switch the context of who you are speaking to - if the person is religious, from other nations such as: Saudi
Arabia or Iran - provides international usage - Provide effective reasoning and possible replacements for the highlighted non inclusive text
- context menu (right click highlighted text)
- check highlighted button
- real-time auto-inclusive adjustment (targets textareas, checks after 2s of idle time and only if the sidepanel is open)
- file upload (txt and pdf)
- settings with language (responds in another language), country, and religion
- login
- logout
- invalid api key warning
- go to cohere dashboard
- advanced settings (adjust AI model parameters)
To incorporate the project, we utilised the Cohere language model, and we implemented this in the format of a Google Extension. The state of the art LSTM, machine learning model that is popular for Natural Language Processing, from Cohere was used to process the input text and made it more inclusive through prompt engineering. Since we were on a time-crunch we decided to use a well-known pre-trained model, rather than training an LSTM from scratch. Tailwind CSS was used to style the chrome extension, so it is appealing for the user.
- Continuing to improve AI model accuracy with prompt adjustments and fine-tuning
- Real time: Further implementation, support for all contenteditable inputs
- More customizable (model parameters)
- Ability to give multiple different replacements and the user can choose what they prefer
- Make UI available outside of the side panel: highlighting text and allow the user to hover over the text, choosing what to replace
- Premium features (likely related to customization, more tokens, etc)
