$npx skillfedfor your agent

spacy-language-detection

Fully customizable language detection for spaCy pipeline

SkipPyPI LibrariesReleased Sep 2021992.9K downloads / moLGPLv3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — spacy_language_detection-0.2.1-py3-none-any.whl
v0.2.1 · released 2021-09-08 · Python >=3.7 · 2 runtime deps: spacy, langdetect

No. The package is abandoned (last update 2021-09-08, 1801 days ago) with no maintenance signal. While it has low install friction and no known vulnerabilities, the lack of updates means it may break with newer spaCy versions or Python releases. If you need language detection in spaCy, consider maintaining a fork or using a more actively maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a spaCy model to be installed separately (e.g., spacy download en_core_web_sm).
  • Low install friction with just two runtime dependencies (spacy and langdetect).
  • However, the package is abandoned—last commit was 2021-09-08 and no updates since.

License · maintenance · safety

LGPLv3 (copyleft) — Licensed under LGPLv3 (copyleft). You must disclose source code and license any derivative work under the same terms if you distribute it; internal use has no obligation.

last release 2021-09-08 (1801 days) · last repo commit 2021-09-08 · 8 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 992,917 downloads/mo, #4,557 on PyPI

Verify before relying

import spacy
from spacy.language import Language
from spacy_language_detection import LanguageDetector

def get_lang_detector(nlp, name):
    return LanguageDetector(seed=42)

nlp = spacy.load("en_core_web_sm")
Language.factory("language_detector", func=get_lang_detector)
nlp.add_pipe('language_detector', last=True)

doc = nlp("This is English text.")
print(doc._.language)
  • Accuracy and performance of langdetect on modern language distributions and edge cases.
  • Compatibility with spaCy versions released after 2021-09-08.
  • Whether the seed-fixing fork resolves the original spacy-langdetect randomness issue completely.
Same gist for agents: .md · .json

What it is and what it does

spacy_language_detection is a spaCy pipeline component that detects the language of text at both document and sentence level. It wraps langdetect under the hood and exposes language predictions as custom attributes (doc._.language and span._.language) on spaCy Doc and Span objects. The package was forked from spacy-langdetect to fix a seed problem and add spaCy 3.0 support.

The component is fully customizable: you can replace the default langdetect detector with your own language detection function (e.g., googletrans or pycld2) by passing a callable to the LanguageDetector constructor. This makes it useful for pipelines where you need language identification as a preprocessing or filtering step, or where you want to swap detection backends without rewriting integration code.

Use it for

  • Filter or route multilingual documents to language-specific NLP pipelines based on detected language.
  • Identify language switches within a document to handle code-switching or mixed-language text.
  • Preprocess text corpora to separate documents by language before applying language-specific models.
  • Add language metadata to spaCy Doc objects for downstream analysis or logging.
  • Integrate a custom language detector (e.g., from an external API) into a spaCy workflow.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last update 2021-09-08, 1801 days ago) with no maintenance signal. While it has low install friction and no known vulnerabilities, the lack of updates means it may break with newer spaCy versions or Python releases. If you need language detection in spaCy, consider maintaining a fork or using a more actively maintained alternative.

Install

spacy-language-detection on PyPI

Before you install

Low install friction with just two runtime dependencies (spacy and langdetect). However, the package is abandoned—last commit was 2021-09-08 and no updates since. Use only if you need this specific functionality and are comfortable maintaining a fork yourself.

Requires a spaCy model to be installed separately (e.g., spacy download en_core_web_sm).

License in practice

Licensed under LGPLv3 (copyleft). You must disclose source code and license any derivative work under the same terms if you distribute it; internal use has no obligation.

Quickstart

import spacy
from spacy.language import Language
from spacy_language_detection import LanguageDetector

def get_lang_detector(nlp, name):
    return LanguageDetector(seed=42)

nlp = spacy.load("en_core_web_sm")
Language.factory("language_detector", func=get_lang_detector)
nlp.add_pipe('language_detector', last=True)

doc = nlp("This is English text.")
print(doc._.language)

Verify before relying

  • Accuracy and performance of langdetect on modern language distributions and edge cases.
  • Compatibility with spaCy versions released after 2021-09-08.
  • Whether the seed-fixing fork resolves the original spacy-langdetect randomness issue completely.

Package facts

LicenseLGPLv3 copyleft
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
spacylangdetect
MaintenanceAbandoned 1,801 days since the last release
Last repo commit
First released
Downloads992,917 / month, #4,557 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Programming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Evidence: spacy_language_detection-0.2.1-py3-none-any.whl

Tags

Capabilities
spacy language detectiondetect document languagemultilingual text processingsentence language identificationspacy nlp pipeline extensionlanguage classifier for spacyidentify text language
Topics
nlp-pipelinelanguage-detectionabandoned

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “spacy language detection”

  • spacy-language-detectionAdds language detection to spaCy pipelines at document and sentence…
  • negspacyAdds negation detection to spaCy pipelines using the NegEx algorithm,…
  • PyRuSHPyRuSH segments clinical and telegraphic text into sentences using…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also gibberish-detector · langdetect · negspacy · pycld2 · spacy · lingua-language-detector · date-spacy · fasttext-langdetect · vokativ · spanishconjugator