NutriSub AI is an AI-powered tool that suggests healthier alternatives for ingredients. If an exact match isn't found, it uses fuzzy string matching to find the closest substitute.
-
Ingredient substitution using a CSV dataset.
-
AI-powered fuzzy matching for similar ingredients.
-
CSV-based storage for easy expansion.
-
Runs in VS Code (future web version planned).
-
Python (Core logic)
-
Pandas (Handling CSV data)
-
FuzzyWuzzy (AI-powered text matching)
-
Git & GitHub (Version control)
-
Clone the repository:
git clone https://github.com/joemsomi/NutriSub-AI.git cd NutriSub-AI
-
Install dependencies:
pip install pandas fuzzywuzzy python-Levenshtein
-
Run the script:
python main.py
-
The script will ask you to enter an ingredient.
-
If a healthy alternative is found, it will be displayed.
-
If no exact match is found, AI will suggest the closest ingredient.
-
Type
exit
to stop the program.
Enter an ingredient you want to replace: margarine
Did you mean 'butter'? A healthier alternative is: avocado or olive oil
-
Convert into a web app (Flask or Streamlit).
-
Deploy to AWS for online access.
-
Expand the ingredient database.
Want to improve the project? Feel free to fork it and submit a pull request!
-
GitHub: joemsomi
-
LinkedIn: Joseph Msomi