mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
Ryan asked for the keyboard's speech model to be chosen in Settings, English or multilingual, now that the keyboard dictates the multilingual model's languages itself (previous pull request). - Settings › Dictation's speech model card gets Model: English · Multilingual (SpeechModelChoice, SpeechModelChoiceRow) under Speech model in keyboard, on iPhones with 6 GB or more; under that the switch above already says it needs 6 GB and the row doesn't show. English stays the default. Multilingual is the existing setting (MultilingualParakeetSettings, experiments.multilingualParakeet), so Hex's own dictation follows it as it did from Experiments. - Each choice says what it means before anything downloads: English, "For English. A 464.4 MB download, once, on Wi-Fi."; Multilingual, its 25 languages by name in the iPhone's language and "A 632.2 MB download, once, as soon as you pick it. Hex dictates them with it too."; and both, that other languages use Apple's speech recognition and a downloaded model stays. - Picking English no longer deletes a complete multilingual download, so switching back is instant (ParakeetUltraModel.removeUnlessComplete, also at launch); a part-way one still goes. English's model already stayed while Multilingual was on. - With Multilingual picked, the card shows its download or failure (MultilingualModelStatus, whose Turn off is now Use English) and, with the keyboard switch on, what the keyboard does with it (KeyboardParakeetStatus.multilingualLine). The switch's detail no longer says "For English": "The keyboard dictates with the model below." - Removed Experiments › Multilingual model (Parakeet) and its strings. - Docs: dictation.md, settings-and-home.md, acknowledgements. Verified: build for the simulator; DictationSSOTTests, DictationControllerTests and KeyboardBridgeTests pass on basebook's iOS 27.2 simulator (129 tests, new cases for the multilingual status line, the language names, and keeping a complete download); the card in English and Multilingual, English and Simplified Chinese, from the app on the simulator; code-shape --check passes.
4.6 KiB
4.6 KiB
Acknowledgements
Part of Hex for iPhone.
The app shows these under Settings › Acknowledgements (HEXMobile/AcknowledgementsView.swift).
- Google Books Ngram data: Spatial autocorrect's word and word-pair frequencies, German's capitalisation shares and French's list of words outside its model come from the Google Books Ngram Viewer data, version 3 (2020), by Google, licensed under Creative Commons Attribution 3.0. Counts are summed over 1980–2019 and kept only for words in the lists below.
- SCOWL: English words are checked against SCOWL (Spell Checker Oriented Word Lists) and VarCon by Kevin Atkinson, sizes up to 70 (http://wordlist.aspell.net/). Copyright 2000-2018 by Kevin Atkinson. Permission to use, copy, modify, distribute and sell these word lists, the associated scripts, the output created from the scripts, and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Kevin Atkinson makes no representations about the suitability of this array for any purpose. It is provided "as is" without express or implied warranty. SCOWL's inflections come from WordNet 1.6, Copyright 1997 by Princeton University, all rights reserved, provided "as is" without warranties (the full notice is in the app); its other sources are public domain.
- LDNOOBW: The keyboard's suggestion filter uses the List of Dirty, Naughty, Obscene, and Otherwise Bad Words (LDNOOBW), © 2012–2020 Shutterstock, Inc., and contributors: its English, Spanish, German and Norwegian lists, licensed under Creative Commons Attribution 4.0 International. Hex lowercased and classified the entries, omitted ordinary, medical and search-only terms, and added common slurs, inflections and spelling variants.
- Parakeet V2: Hex dictates English with NVIDIA's Parakeet TDT 0.6B v2, licensed under Creative Commons Attribution 4.0 International, downloaded as FluidInference's Core ML conversion (CC BY 4.0, encoder weights at reduced precision), used unchanged.
- Parakeet Ultra: Settings › Dictation › Model: Multilingual downloads
Parakeet Ultra by Moondream, a
post-training of NVIDIA's
Parakeet TDT 0.6B v3, both licensed
under Creative Commons Attribution 4.0 International,
as FluidInference's Core ML conversion
(revision
95eaa59: 8-bit integer encoder weights, decoder and joint re-exported), used unchanged. - RLA-ES: Spanish words are checked against RLA-ES, the Spanish spelling dictionaries for LibreOffice by Santiago Bosio and contributors (Spain and Mexico), used under the Mozilla Public License 1.1 (https://github.com/sbosio/rla-es).
Polish's three entries show while the keyboard bundles pl.hextm
(AcknowledgementsView.polishEntries):
- National Corpus of Polish n-grams: Polish word and word-pair frequencies come from the n-grams of NKJP's balanced subcorpus (Institute of Computer Science, Polish Academy of Sciences; http://zil.ipipan.waw.pl/NKJPNGrams), made available under a Creative Commons Attribution licence (the page names no version).
- ParlaMint: which Polish spellings are missing their marks, and which words are names, is checked against the Polish part of ParlaMint 5.0 (Erjavec et al., CLARIN.SI, http://hdl.handle.net/11356/2004), licensed under CC BY 4.0.
- PoliMorf: Polish words are checked against PoliMorf 2018-07-23 (http://hdl.handle.net/11321/577), under the 2-clause BSD licence whose notice the app reproduces in full: portions copyright © 2011 Marek Futrega, Piotr Gackiewicz, Mirosław Prywata, Włodzimierz Macewicz, Marcin Miłkowski; © 2007–2018 Zygmunt Saloni, Włodzimierz Gruszczyński, Marcin Woliński, Robert Wołosz, Danuta Skowrońska; © 2011–2018 Institute of Computer Science, Polish Academy of Sciences.