Dialectify is a machine learning-based tool that detects and converts different dialects of English (such as American and British English) based on user input. It uses NLP (Natural Language Processing) models to recognize dialect differences and suggests auto-fixing and error-checking based on the dialect specified by the user.
- Dialect Detection: Detect whether the input text is in American or British English.
- Dialect Conversion: Convert between different dialects based on the user's preference.
- Error Checking: Identify and fix spelling differences between dialects.
- Language: Python
- Framework: Hugging Face's Transformers
- Machine Learning Model: DistilBERT (Distilled version of BERT)
- Dependencies:
transformerstorchscikit-learnpandas
git clone https://github.com/sseth30/Dialectify.git
cd Dialectifypython3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`pip install -r requirements.txtTo train the model, run the following:
python3 src/ml/train_model.pyTo predict the dialect of a sentence:
python3 src/ml/predict.pySentence: I love the color of your car.
Predicted Dialect: American EnglishSentence: I love the colour of your car.
Predicted Dialect: British English