hex/ios/docs
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
..
acknowledgements.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
build-and-test.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
dictation.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
keyboard.md iOS: "heart" offers ❤️; the whole-name rule moves into the emoji index (#2465) 2026-11-22 22:20:13 -05:00
onboarding-and-setup.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
releasing.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
settings-and-home.md iOS keyboard: Light is the default key haptic strength (#2463) 2026-11-22 22:12:53 -05:00
typing-logs.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00
verification.md Split ios/README.md into area docs under ios/docs/ (#2447) 2026-11-22 18:16:37 -08:00