gunthercox/mathparse
A Python library for evaluating natural language mathematical equations
This tool helps developers safely process mathematical equations written in plain language or standard notation, across more than 13 languages. It takes in a text string containing a mathematical expression, like "one hundred times fifty four" or "cinq plus trois", and outputs the calculated numeric result. It's designed for developers building applications such as chatbots, voice assistants, educational software, or secure calculators that need to interpret and solve user-provided math problems.
Used by 1 other package. Available on PyPI.
Use this if you are a developer building an application that needs to securely evaluate user-inputted mathematical expressions, especially if those expressions might be in natural language or multiple languages.
Not ideal if you need to evaluate complex scientific equations, symbolic math, or expressions that require graphing or advanced mathematical functions beyond basic arithmetic.
Stars
53
Forks
18
Language
Python
License
MIT
Category
Last pushed
Feb 12, 2026
Commits (30d)
0
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/gunthercox/mathparse"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
ines/spacy-js
🎀 JavaScript API for spaCy with Python REST API
averbis/averbis-python-api
Conveniently access the REST API of Averbis products using Python
giacbrd/python-dandelion-eu
A python client for connecting to all the services provided by https://dandelion.eu
recap-utr/nlp-service
NLP microservice for computing embeddings
explosion/spacy-services
💫 REST microservices for various spaCy-related tasks