Skip to content

chore: deprecate langdetect components (DocumentLanguageClassifier, TextLanguageRouter)#11662

Draft
julian-risch wants to merge 1 commit into
mainfrom
chore/deprecate-langdetect-components
Draft

chore: deprecate langdetect components (DocumentLanguageClassifier, TextLanguageRouter)#11662
julian-risch wants to merge 1 commit into
mainfrom
chore/deprecate-langdetect-components

Conversation

@julian-risch

Copy link
Copy Markdown
Member

Related Issues

Proposed Changes:

How did you test it?

  • hatch run test:unit test/components/classifiers/test_document_language_classifier.py test/components/routers/test_text_language_router.py: 16 passed (the deprecation FutureWarnings are emitted but don't fail any test)
  • hatch run test:types on the two changed component files: success
  • ran both docstring usage examples end-to-end against the new langdetect-haystack package in the integration branch

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

🤖 Generated with Claude Code

Deprecate DocumentLanguageClassifier and TextLanguageRouter, which are
moving to the new langdetect-haystack integration package. Update docs
to point to the new package and add a deprecation release note.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
haystack-docs Error Error Jun 16, 2026 9:02pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/components/classifiers
  document_language_classifier.py
  haystack/components/routers
  text_language_router.py
Project Total  

This report was generated by python-coverage-comment-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant