hex/ios/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel db515bda85
iOS: "heart" offers ❤️; the whole-name rule moves into the emoji index (#2465)
"heart" is the first word people try, and it offered nothing: CLDR names
❤️ "red heart", and "heart" is shared by 45 emoji, so the index weighed
it down for all of them.

What changed
- scripts/emoji-aliases-en.txt: heart → ❤️ 💕 💖, as Hex's other chat
  words. "love" already offers ❤️ first (love → ❤️ 😍 🥰 😘), so it is
  unchanged. Chat words apply on every layout ("heart" on German gives ❤️).
- scripts/build-emoji-data.py: a word several emoji share still counts for
  less, except for the emoji it is the whole name of ("fuego" → 🔥, "sun"
  → ☀️). This replaces the spread undo #2461 put in EmojiSuggester.forWord,
  which also lifted names a word is only part of whenever the word was a
  chat word (the index never spreads those). Finished words got a third,
  loosely related emoji: "fire " offered 🔥 ❤️‍🔥 🚒, "smile " 😊 😄 😼,
  "ok " 👌 👍 🙆. Now "fire " offers 🔥, "smile " 😊 😄, "ok " 👌 👍. The
  panel's emoji row ranks those whole names higher too.
- emoji-index-{en,es,de,nb}.txt regenerated. Without the two changes the
  script reproduces the committed files byte for byte (same emoji-test
  18.0 and CLDR 49 downloads), so the diff is only these weights and the
  heart line.
- EmojiSuggester.forWord compares the stored weight again.
- "thumbs up" is left as is: the strip reads one word, and "up" is a
  stopword, so the whole phrase needs a two-word span in the strip and the
  tap. "thumbs" already offers 👍 before and after its space.
- docs/keyboard.md: the Emoji section.

Verified
- EmojiSuggesterTests, EmojiShortcodeTests, EmojiPanelLettersKeyTests and
  the typed-word emoji engine test: 41 tests, 0 failures (Studio, iPhone 17
  Pro iOS 27.2 simulator). New cases: "heart" → ❤️ on English and German,
  "heart " → ❤️ 💕 💖, "fire " → 🔥 only, "smile " → 😊 😄.
- 24 everyday words per language: en 19 → 20 (heart), es 13, de 11, nb 12,
  unchanged otherwise.
2026-11-22 22:20:13 -05:00
..
build-emoji-data.py iOS: "heart" offers ❤️; the whole-name rule moves into the emoji index (#2465) 2026-11-22 22:20:13 -05:00
build-german-capitals.py
build-typing-model.py iOS keyboard: reproducible Polish typing model build, Polish held-out set, Polish credits (no model shipped) (#2401) 2026-11-22 14:28:54 -05:00
emoji-aliases-en.txt iOS: "heart" offers ❤️; the whole-name rule moves into the emoji index (#2465) 2026-11-22 22:20:13 -05:00
en-extra-words.tsv English typing model: contractions as common as their words, and Hex's chat and tech words (#2408) 2026-11-22 13:40:28 -05:00
fetch-cleanup-model.sh
marketing-release.sh
motion-capture.sh iOS: dictation strip motion (round 3) (#2457) 2026-11-22 18:42:34 -08:00
typing-gate.py iOS keyboard: Polish autocorrects with Hex's own model, word list and capitals (#2423) 2026-11-22 14:45:55 -05:00