
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
guess_language-spirit
Advanced tools
from guess_language import guess_language guess_language("Ces eaux regorgent de renégats et de voleurs.") 'fr' guess_language("Tienes que seguir tu corazón.") 'es' guess_language("いいえ!忍者がいます") 'ja' not guess_language("??") True
If your text is less than 20 characters long,
you need PyEnchant <http://packages.python.org/pyenchant>
_
and the appropriate dictionaries installed:
guess_language("Hello, World!") 'en'
To install the package for Python 3, use::
$ ./setup.py install
To install the package for Python 2, use::
$ python2 setup.py install
To install with pip, use::
$ pip install guess_language-spirit
On Windows, you may use one of the MSI binary packages provided on the
download page <https://bitbucket.org/spirit/guess_language/downloads>
_.
Python 3.2+ <http://www.python.org>
_ (or 2.7)PyEnchant <http://packages.python.org/pyenchant>
_ (optional)lib3to2 <https://bitbucket.org/amentajo/lib3to2>
_
(if installing for Python 2)This is a Python 3 version of
guess-language <http://code.google.com/p/guess-language>
_
with further improvements.
FAQs
Guess the natural language of a text
We found that guess_language-spirit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.