mbglot Copyright (c) 2026 cn-nnzy Licensed under the MIT License (see LICENSE). This project ports the language-identification approach and data of franc. franc-min 6.2.0 https://github.com/wooorm/franc/tree/main/packages/franc-min https://www.npmjs.com/package/franc-min/v/6.2.0 Licensed under the MIT License: Copyright (c) 2014 Titus Wormer Copyright (c) 2008 Kent S Johnson Copyright (c) 2006 Jacob R Rideout Copyright (c) 2004 Maciej Ceglowski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. What is taken from franc-min 6.2.0: - The set of supported languages (the keys of data.js and expressions.js) and their ISO 639-3 codes. English names follow the ISO 639-3 reference names listed in the franc-min readme, without the parenthesised qualifiers. - The Unicode ranges of each script in script_ranges.mbt, decoded from the regular expressions in franc-min 6.2.0 expressions.js (https://unpkg.com/franc-min@6.2.0/expressions.js): surrogate pairs were combined into code points and adjacent ranges merged, without adding or removing any code point. The script order used to break ties is the key order of that file. - The trigram profiles in profiles.mbt, generated by tools/gen_profiles.mjs from franc-min 6.2.0 data.js without changes. - The ranking algorithm in franc.mbt, ported from franc-min 6.2.0 index.js. - The expected results in golden_wbtest.mbt, produced by running franc-min 6.2.0, and the fixture texts in that file, taken from test/fixtures.js of the franc repository at tag franc-min@6.2.0 (commit 3f9f0b51a96c5df32a407dad865a3011ac0fa2d1), MIT License, Copyright (c) 2014 Titus Wormer. trigram-utils 2.0.1, n-gram 2.0.2, collapse-white-space 2.1.0 The dependencies franc-min 6.2.0 resolves to. Their text cleaning and trigram extraction are ported in trigram.mbt. Each is licensed under the MIT License with the same terms as above: trigram-utils, n-gram: Copyright (c) 2014 Titus Wormer collapse-white-space: Copyright (c) 2015 Titus Wormer Unicode Character Database 17.0.0 unicode_case.mbt is generated by tools/unicode_case.py from UnicodeData.txt, SpecialCasing.txt and DerivedCoreProperties.txt (https://www.unicode.org/Public/17.0.0/ucd/), licensed as follows: UNICODE LICENSE V3 COPYRIGHT AND PERMISSION NOTICE Copyright © 1991-2026 Unicode, Inc. NOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. Permission is hereby granted, free of charge, to any person obtaining a copy of data files and any associated documentation (the "Data Files") or software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that either (a) this copyright and permission notice appear with all copies of the Data Files or Software, or (b) this copyright and permission notice appear in associated Documentation. THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE. Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder. Universal Declaration of Human Rights franc builds its trigram profiles from translations of the Universal Declaration of Human Rights collected by the UDHR in Unicode project (https://unicode.org/udhr/). Any trigram data in this repository is derived from franc-min 6.2.0 and therefore from that corpus. Tatoeba eval/tatoeba/corpus.mbt holds sentences from Tatoeba (https://tatoeba.org), selected by tools/gen_tatoeba.py from the per-language exports of 10 October 2026 (https://downloads.tatoeba.org/exports/per_language/). They are licensed under the Creative Commons Attribution 2.0 France license (CC BY 2.0 FR, https://creativecommons.org/licenses/by/2.0/fr/). The authors are the Tatoeba contributors; each sample in the file lists the ids of its sentences, and the author of sentence N is shown at https://tatoeba.org/sentences/show/N. Sentences were only joined with spaces and had runs of whitespace collapsed; they are not otherwise modified. FLORES-200 eval/flores/corpus.mbt holds 40 devtest sentences per language from FLORES-200 (https://github.com/facebookresearch/flores, archive https://dl.fbaipublicfiles.com/nllb/flores200_dataset.tar.gz), selected by tools/gen_flores.py. FLORES-200 is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/), and so is that file. The sentences only had runs of whitespace collapsed; they are not otherwise modified. Reference: NLLB Team et al., "No Language Left Behind: Scaling Human-Centered Machine Translation", 2022; Goyal et al., "The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translation", 2022.