hex/android/app/src/main/assets/licenses/credits.txt
Ryan Vogel 44be686fde
Android: never suggest slurs, and swear words only when asked (#2081)
* Android: bundle a curated, attributed never-suggest list

Separate identity slurs from opt-in profanity for English, Spanish, German and Bokmål, reusing CC BY 4.0 LDNOOBW data with an explicit source revision, modifications and credit on the in-app licences screen. Include common inflections, keep neutral anatomy and ordinary local meanings, and match selected expressions as whole pairs.

Checked all 653 rows against the pinned four upstream lists, verified the attribution and licence, and compared all four HXTM files from Android, iOS and the debug APK byte-for-byte. No language model or probability is replaced.

* Android: filter keyboard candidates without rewriting typed words

Replace unconditional HXTM output with lookup-time flags for prefix and next-word suggestions, deterministic fixes, whole-word spatial readings, and both halves of missed spaces. Still use blocked words for probabilities, and keep a fully typed spelling (including out-of-model words) through space or a distinct literal chip. The Inter Keyboard switch enables profanity only; preference-aware caches refresh even in the active editor.

Verified 8 filter tests and 5 existing tests in each of debug and release, including every curated entry across the four layouts. Reproduced offensive suggestions and space replacements on the Studio API 35 IME before the change; after it, confirmed safe near-miss results, intentional literals, live toggle refresh, and light/dark settings. The 4,000-sentence phase-4 replay changed English WER from 7.4045% to 7.4117% and left Spanish at 10.3301%.
2026-11-20 18:02:48 +00:00

40 lines
3.2 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Whisper model weights by OpenAI; Q5_1 conversion distributed by Georgi Gerganov. MIT.
whisper.cpp and ggml by Georgi Gerganov and contributors. MIT.
Kotlin and AndroidX: Apache License 2.0. LLVM libc++: Apache 2.0 with LLVM exceptions.
Inter by Rasmus Andersson and the Inter Project Authors. SIL Open Font License 1.1.
Unmodified InterVariable.ttf from https://github.com/rsms/inter/releases/tag/v4.1
Keyboard suggestion filter: List of Dirty, Naughty, Obscene, and Otherwise Bad Words
(LDNOOBW), © 2012–2020 Shutterstock, Inc., and contributors. English, Spanish, German
and Norwegian lists. Source: https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words/tree/5faf2ba42d7b1c0977169ec3611df25a3c08eb13
Creative Commons Attribution 4.0 International: https://creativecommons.org/licenses/by/4.0/
Full licence: cc-by-4.0.txt. Hex lowercased and classified the entries, omitted ordinary,
medical and search-only terms, and added common slurs, inflections and spelling variants.
English, Spanish and German keyboard language models (.hextm): derived from Google Books Ngram
Viewer, version 3 (2020-02-17), by Google and the Google Books Ngram contributors.
https://storage.googleapis.com/books/ngrams/books/datasetsv3.html
Creative Commons Attribution 3.0 Unported: https://creativecommons.org/licenses/by/3.0/
Changes: lowercased and summed word and word-pair counts for 1980–2019, filtered
spellings, selected informative pairs, and quantized probabilities into HXTM v3.
German uses the German corpus's alphabetic spellings; no external German dictionary.
English literal validity also uses SCOWL words, proper names, uppercase forms and abbreviations
outside the frequency model, lowercased and sorted; these spellings carry no word probabilities.
English spellings: SCOWL 2020.12.07, sizes through 70; Kevin Atkinson and contributors.
Permission and individual source notices: scowl.txt. https://wordlist.aspell.net/
Spanish spellings: RLA-ES Hunspell dictionaries (es_ES and es_MX), coordinated by Santiago Bosio,
used under Mozilla Public License 1.1. The frequency model filters by these spellings;
the original dictionaries are unmodified. See mpl-1.1.txt, rla-LICENSE.md and rla-README_hunspell_es.txt.
Source files: https://github.com/LibreOffice/dictionaries/tree/762abe74008b94b2ff06db6f4024b59a8254c467/es
Norwegian Bokmål keyboard language model: N-grammer fra Nasjonalbiblioteket 2026,
National Library of Norway (Nasjonalbiblioteket). Book unigrams and bigrams ("digibok"),
language nob, 1980–2019. CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/
https://data.norge.no/nb/datasets/f2eebe8b-bd83-34e4-bcf3-c0c5e37a77f8/n-grammer-fra-nasjonalbiblioteket-2026
Spelling filter: Norsk ordbank – bokmål 2005, 1 February 2022, University of Bergen
(Universitetet i Bergen) and the Language Council of Norway (Språkrådet), distributed by
Nasjonalbiblioteket. CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
https://data.norge.no/en/datasets/f0db926d-a154-3a12-82b8-6573b57f6dbb/norsk-ordbank-norwegian-bokmal-2005
Changes: normalized and lowercased word forms, filtered the book counts to attested
Bokmål spellings, selected informative pairs and quantized probabilities into HXTM v3.