Skip to main content

Makes the language classification script from the GiellaLT's corpus tools available as a python module (GiellaLT's website, original repo).

The source code as well as the language model files are released under the GPL-3.0 license.

Installation

pip install gielladetect

Usage

import gielladetect

text = "Lurer du på hva som rører seg innenfor veggene til Nasjonalbiblioteket på Solli plass i Oslo?"

gielladetect.detect(text)
# Result: 'nob'

# To restrict detection to a subset of languages:
gielladetect.detect(text, ['nob', 'nno', 'eng'])
# Result: 'nob'

Supported languages

Using ISO 639-3 codes.

Code Name
ara Arabic
bxr Russia Buriat
ckb Central Kurdish
dan Danish
deu German
eng English
est Estonian
fao Faroese
fas Persian
fin Finnish
fit Tornedalen Finnish
fkv Kven Finnish
fra French
hbs Serbo-Croatian
isl Icelandic
ita Italian
kal Kalaallisut
kmr Northern Kurdish
koi Komi-Permyak
kpv Komi-Zyrian
krl Karelian
mdf Moksha
mhr Eastern Mari
mns Mansi
mrj Western Mari
myv Erzya
nno Norwegian Nynorsk
nob Norwegian Bokmål
olo Livvi
pol Polish
rmf Kalo Finnish Romani
rmn Balkan Romani
rmu Tavringer Romani
rmy Vlax Romani
ron Romanian
rus Russian
sma Southern Sami
sme Northern Sami
smj Lule Sami
smn Inari Sami
sms Skolt Sami
som Somali
spa Spanish
swe Swedish
tur Turkish
udm Udmurt
urd Urdu
vep Veps
vie Vietnamese
yid Yiddish
yrk Nenets

Metadata

Release files for gielladetect 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gielladetect 1.0.4
File Size Uploaded
gielladetect-1.0.4.tar.gz 3.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gielladetect 1.0.4
File Interpreter ABI Platform
gielladetect-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 MB

Release files / gielladetect-1.0.4.tar.gz

Download URL gielladetect-1.0.4.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
31c9f63c48d484fcdf6f5956019a3b0501528d2db232f1ff4c62910fba3a826f
BLAKE2b-256 checksum
How to use checksums
d1f46a382cfe62a52b15f8bb7d7b1d9587c9e95ac274f52f49b0e0f18c61e296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / gielladetect-1.0.4-py3-none-any.whl

Download URL gielladetect-1.0.4-py3-none-any.whl
Size 4.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6c3da513ecf30f85701c933acfc42918636a620732a6ca1607428571fdefa357
BLAKE2b-256 checksum
How to use checksums
10cafa53205200a5629add01d60fea543d8ab0839a5e9786943365747f61b630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page