Package that recognizes the language of an input string from over 70 languages. The package is probabilistic as the words in the input string are sampled.
Project description
simple-language-recognizer
What is it?
Package that recognizes the language of an input string from over 70 languages. The package is probabilistic as the words in the input string are sampled.
What languages can it detect?
Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, English, Estonian, Filipino, Finnish, French, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Kannada, Kazakh, Khmer, Korean, Kurdish, Kyrgyz, Lao, Latin, Latvian, Ligurian, Lithuanian, Luganda, Luxembourgish, Macedonian, Malay, Malayalam, Marathi, Nepali, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Scottish Gaelic, Serbian, Sinhala, Slovak, Slovenian, Spanish, Swedish, Tajik, Tamil, Tatar, Telugu, Thai, Tibetan, Tigrinya, Tswana, Turkish, Ukrainian, Urdu, Vietnamese, Yoruba
Installing
There are installers for Windows, MacOS and Linux (manylinux). Manylinuxa works with multiple Linux distros. To install:
pip install simple-language-recognizer
Note for MacOS users:
If you receive an error like "SyntaxError: Non-UTF-8 code starting with '\xe0'", include the following at the top of your python codes before the import statement.
# -*- coding: utf-8 -*-
Example
from simpleLanguageRecognizer import languageRecognizer
input = "This is an example of a short phrase in English but which is longer than 50 characters."
output = languageRecognizer(input)
print(output)
output = languageRecognizer(input,False,3,0.25)
print(output)
Input arguments
- text (string): The input string.
- allLanguages (bool) (Optional): True (All languages) / False (Only European/Latin-based languages). The function works faster when allLanguages is set to False.
- maxResults (int) (Optional): The maximum length of the output array. The output array might be empty if the input string is not recognized.
- sampleRatio (double) (Optional): Ratio of words being sampled from the input (0.0 - 1.0).
Change log
Version 0.0.1: Initial release.
Version 0.0.2: Readme.md update.
Version 0.0.3: Available for Windows, Linux and MacOS.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_language_recognizer-0.0.3.tar.gz.
File metadata
- Download URL: simple_language_recognizer-0.0.3.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4725eb623c2842a600f91d5290dec4ec44274e68a96d808db3c8203857f03348
|
|
| MD5 |
27e146f13528a89045c334952d04ad69
|
|
| BLAKE2b-256 |
4e6c1857e2b807c9aea0b4a271111f009a7a151614d4ec1bf9ffad9965e06d0d
|
File details
Details for the file simple_language_recognizer-0.0.3-cp314-cp314t-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp314-cp314t-win_amd64.whl
- Upload date:
- Size: 894.8 kB
- Tags: CPython 3.14t, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6425790fbf79fc88fef20f72d9aa056e5e947684a1827c91ce3c8181945a96a
|
|
| MD5 |
7bfedf8198e8ca0cfc8da25e236a4966
|
|
| BLAKE2b-256 |
3e3d77968b64e6020c25e76c22aad945da3e5871de92a59cde6774df2ef4f6b5
|
File details
Details for the file simple_language_recognizer-0.0.3-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 888.6 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f31ce7f38109a00d0b169aece68c97ce8dcc2d59d7b71994527628c7e7d328d
|
|
| MD5 |
e08a3eb5fd8517851c8484e2a0ffb5b2
|
|
| BLAKE2b-256 |
41c3547f15786483af3281b84fcc17c2a699a52af9577f3e722e044ddde93664
|
File details
Details for the file simple_language_recognizer-0.0.3-cp314-cp314-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp314-cp314-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.14, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3633b36bcfad0695b734d3d4bececa60a0ebb5ee6a3ff7bdb5e95506f962422b
|
|
| MD5 |
e2bc6ecfa81f793eddd59b6bd29f27f6
|
|
| BLAKE2b-256 |
dea6e9ca40683b1b83f92fcbeb0e81ff2e67e8d8b36aae5cf54b584ab655e07c
|
File details
Details for the file simple_language_recognizer-0.0.3-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 815.8 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f298fae655e91cd700da60a57bf171a5faead47b2712967dcc937f0d8891b7f
|
|
| MD5 |
4f782fb29a3a2a1098bf7ddf1a0eb826
|
|
| BLAKE2b-256 |
0dff121791624db72d73ecc930ffb54ba87866c197b1ddff3ecc3c3119881299
|
File details
Details for the file simple_language_recognizer-0.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 524.2 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc3b0ee873942a203d0b15237cd1b0a6791ee4628ce8033b3a450dd926f6454b
|
|
| MD5 |
68ee59fdd67c09cac22735e0af68591d
|
|
| BLAKE2b-256 |
8a95576682923a3c8dcea256e52aec1ab39dfaa39b9c314c1c0ef23829b6ea67
|
File details
Details for the file simple_language_recognizer-0.0.3-cp313-cp313-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp313-cp313-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.13, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62b003b7b1cd54b67e1fab6054bbefec4d6b761be9dfddf56329177efa999c97
|
|
| MD5 |
fd618156a3ef7327521abe0c96308185
|
|
| BLAKE2b-256 |
e7056f5394ca83ff6fa424ddf73003e2902aa417c2fc26a0b1fce4d427e205e0
|
File details
Details for the file simple_language_recognizer-0.0.3-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 815.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b05afc276bb805f8efca21c299b001d9429972decc87ff8d5fc6cb03e57fd13
|
|
| MD5 |
c396db8bb5bfa51ff68ac3a04fe86661
|
|
| BLAKE2b-256 |
b72d42e9c831cc3808caae4442da55dee892c03813c71676df70f9bf57157ba1
|
File details
Details for the file simple_language_recognizer-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 521.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fff7a2e83fcfd20ddf3dbd30b2506750e0e48e0cad923b9324a3ea476a9bfb73
|
|
| MD5 |
bd089d1735fd8697563c9cfc0d5fd115
|
|
| BLAKE2b-256 |
b33270e46e208ec699534bbbf6df47dbb83e26158fa106984ad7e316dc7bce64
|
File details
Details for the file simple_language_recognizer-0.0.3-cp312-cp312-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp312-cp312-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dcdd16d990aed291dbd027487c4506a47076c7f4a6b2d7c41edea21310b1e5c
|
|
| MD5 |
37d19ab97668d4752b744b788f7fe48c
|
|
| BLAKE2b-256 |
c5caebcb0c8eed502c6cb98af406019602eb940d778c6a12d34380358c9f54b4
|
File details
Details for the file simple_language_recognizer-0.0.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 814.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4997c2426628ac9de2d965cf716acc1bfc74b977d39777bbd77a4eb3d7eeec45
|
|
| MD5 |
131d20310822c7b0e1bbef1cad73a35a
|
|
| BLAKE2b-256 |
3c3e9bd70d54144a421c77520879214baa8647db2bbfa6b73cdc3b05dc913a1f
|
File details
Details for the file simple_language_recognizer-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 523.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d94e7e1496c71d72cadffbdfdcc38fe6d55d06547510cf9ae626f87ab828d2d1
|
|
| MD5 |
dc614d5a5b4e09568842cc46fc07eb97
|
|
| BLAKE2b-256 |
22dea1ce847811f2c4392cfbd734065265d1c3cf7ccc0bee7f22347049d89990
|
File details
Details for the file simple_language_recognizer-0.0.3-cp311-cp311-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp311-cp311-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99a727091e303da593cce960afd95093e1e0e9943202adb30b04ce91065a42ab
|
|
| MD5 |
5d6ca32c3ef2efeb25d17989d807cc76
|
|
| BLAKE2b-256 |
b29ae4df4bf84ee457700e2bdd0b25a13b98ccde671931a07738bfc6ab3cca29
|
File details
Details for the file simple_language_recognizer-0.0.3-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 814.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7fbed53b39174e9933a68bb30f61b1885b2364b4194b41ca5568c59baa3231
|
|
| MD5 |
8b01d94ad3f28903c13da4f70843820d
|
|
| BLAKE2b-256 |
7c9c3af9e065064879afef5cea08c9b449b1cda35283d605fcac6aac1abcf59b
|
File details
Details for the file simple_language_recognizer-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 518.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a37e54f97efb557b3ab8fae46d4fcf5fd1b3d3bd7cff4c749b767fa62e77854f
|
|
| MD5 |
ee087e0fdfd8b1a07d592da22c71fdf6
|
|
| BLAKE2b-256 |
bdcbade905523e4721f452112b608b81b8a927f67d6f3a29f258401f23fe06bc
|
File details
Details for the file simple_language_recognizer-0.0.3-cp310-cp310-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp310-cp310-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3268a90a7d2975f25cdd829cd1a95c64e4fccbc2664a64285a820ed17b4a472e
|
|
| MD5 |
87a2de32d2be2d2936b8f7b9b372f28d
|
|
| BLAKE2b-256 |
c53fcee99943853d95fa420159d6cb6dae2bd223b09b46941aaf9a10b7be81de
|
File details
Details for the file simple_language_recognizer-0.0.3-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 814.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1725df6c1a27ab4709b2ed78432375d36382b73b42ae773c461b7224a1823514
|
|
| MD5 |
a5c7aeb3935cdfc8eeb4b22a631f1851
|
|
| BLAKE2b-256 |
03a2df787f9ed120e38d8dc048eb072bdef07718e6b4d47a361d0e4f63f98e02
|
File details
Details for the file simple_language_recognizer-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 519.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af6802fc2d2f907b7ffe60824ded406d802a3e879162e7a86db62a363d6c882e
|
|
| MD5 |
d5933e326e08aed45500d64161f0850f
|
|
| BLAKE2b-256 |
e965591bd750edc64c238c512eccf4a7b2df77739fb968dbd1ee2019878b5cd3
|
File details
Details for the file simple_language_recognizer-0.0.3-cp39-cp39-macosx_11_0_universal2.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp39-cp39-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b86e50704b61db6f06687ae2e249cad3fd54547569bffec038a4f3921f8c0ae
|
|
| MD5 |
c949e937b9020ece175da71dce978069
|
|
| BLAKE2b-256 |
595f27681e169a8bbbf5351d977dff6a0ae9959dadbb04429df3dc8a0598f6f5
|
File details
Details for the file simple_language_recognizer-0.0.3-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 813.6 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce564e55225c3a05bf275b1eaeccd2c506c18aa5cd1fee5adcd0d6069b1d4cd1
|
|
| MD5 |
7ffad6c565bfa8416365626414a88f83
|
|
| BLAKE2b-256 |
a7f4755e9f1ede27d4eeec9d9427597b731bb1c60a1eee57039657188dc4bc5f
|
File details
Details for the file simple_language_recognizer-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: simple_language_recognizer-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 519.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7436ebc6b4db7c7e2a9a23d49517e27a9faaf36cbc6fef22065d02ba62bfb93
|
|
| MD5 |
74062ed9cbfdd055a114b83806804003
|
|
| BLAKE2b-256 |
de61d1cac8aa6b71242746c664dbd52ee2042fcf5cf421ec7e1472825a513c9f
|