language-detector

检测文本语言并提供置信度分数,支持50多种语言,以及批量文本分类。

📖 中文导读:检测文本语言并提供置信度分数,支持50多种语言,以及批量文本分类。 以下正文为该技能的原始 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