# language_tool_python デモ手順（Java 不要・公開 API モード）
pip install --upgrade language_tool_python

# 基本チェック
python3 -c "
import language_tool_python
with language_tool_python.LanguageToolPublicAPI('en-US') as tool:
    text = 'This are a bad sentence with many error in it.'
    matches = tool.check(text)
    print(f'検出した問題: {len(matches)} 件')
    for m in matches:
        print(f'  [{m.ruleId}] {m.message}')
        print(f'    修正候補: {m.replacements[:3]}')
    print('修正後:', tool.correct(text))
"

# CLI 版（標準入力から）
echo "She don't know nothing about it." | language_tool_python -l en-US -
