Detect which human language a document uses from OCaml, from the Nu Html validator
languages
unicode
ocaml
1(*---------------------------------------------------------------------------
2 Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>
3 SPDX-License-Identifier: MIT
4 ---------------------------------------------------------------------------*)
5
6(** Entry point for the standalone JavaScript build.
7 Registers the API on window.langdetect when the script loads. *)
8
9let () = Langdetect_js.register_global_api ()