"Its definitely a word" is an interactive web application that allows users to look up words, check their validity, and explore their meanings. It combines a Scrabble dictionary, a custom JSON meanings file, and the GPT-4 API to provide comprehensive word information.
- Word lookup in a Scrabble dictionary
- Display of word definitions from a custom JSON file
- Scrabble score calculation for valid words
- "Bullshit Mode" for creative definitions using GPT-4 API
- Wildcard search support (use '?' for unknown letters)
- Display of related words, antonyms, and synonyms
- Interactive word chips for easy navigation between related words
- Debug mode for troubleshooting
- HTML5
- CSS3
- JavaScript (ES6+)
- MDUI for UI components
- Axios for API requests
-
Clone the repository:
git clone https://github.com/mataleogml/its-definitely-a-word.git
-
Navigate to the project directory:
cd its-definitely-a-word
-
Ensure you have the following files in your project directory:
index.html
script.js
dictionary.txt
(a text file containing valid Scrabble words, one per line)meaning.json
(a JSON file containing word definitions)
-
If you plan to use the GPT-4 API (for Bullshit Mode), you'll need to set up an API key:
- Sign up for an API key at OpenAI
- In the application, go to Settings and enter your API key
- Open
index.html
in a web browser. - Enter a word in the search box and click "Search" or press Enter.
- The application will display whether the word is valid, its Scrabble score, and its definition(s).
- Click on related words, antonyms, or synonyms to explore further.
- Use the Settings button to toggle Debug Mode or Bullshit Mode, and to set your GPT-4 API key.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
The idea for this project was inspired by Jake Aicher.