language-detector

majiayu000 的头像作者 majiayu000

Detect language of text with confidence scores, support for 50+ languages, and batch text classification.

📖 中文导读:Detect language of text with confidence scores, support for 50+ languages, and batch text classification. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: language-detector description: Detect language of text with confidence scores, support for 50+ languages, and batch text classification.

Language Detector

Identify the language of text with confidence scoring.

Features

  • 50+ Languages: Wide language support
  • Confidence Scores: Probability estimates
  • Batch Detection: Process multiple texts
  • CSV Support: Analyze text columns
  • Multiple Algorithms: Character n-gram analysis

CLI Usage

python language_detector.py --text "Hello world" --output result.json
python language_detector.py --file texts.csv --column text --output languages.csv

Dependencies

  • langdetect>=1.0.9
  • pandas>=2.0.0