Add langdetect-js package for browser language detection
New langdetect-js package provides:
- JavaScript API via js_of_ocaml (langdetect.detect, detectAll, etc.)
- Browser-based regression tests across 37 languages
- Interactive demo page (test.html)
Build with: opam exec -- dune build lib/js/
Open test.html in browser to run tests and try the demo.
API:
langdetect.detect(text) → lang code or null
langdetect.detectWithProb(text) → {lang, prob} or null
langdetect.detectAll(text) → [{lang, prob}, ...]
langdetect.languages() → array of supported language codes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>