<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa" -->

---
title: Your iPhone Keyboard Is Running 1948 Math | daily.dev
description: A walkthrough of the statistical foundations behind iPhone&#x27;s QuickType keyboard, tracing the idea back to Claude Shannon&#x27;s 1948 information theory paper. The...
canonical: https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Your iPhone Keyboard Is Running 1948 Math | daily.dev
og:description: A walkthrough of the statistical foundations behind iPhone&#x27;s QuickType keyboard, tracing the idea back to Claude Shannon&#x27;s 1948 information theory paper. The...
og:url: https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa
og:image: https://api.daily.dev/og/posts/XVCZgqXFa.png
og:image:alt: Your iPhone Keyboard Is Running 1948 Math
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Your iPhone Keyboard Is Running 1948 Math

**[Medium](https://daily.dev/sources/medium_js)** · 7 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of the statistical foundations behind iPhone's QuickType keyboard, tracing the idea back to Claude Shannon's 1948 information theory paper. The author rebuilds a next-word predictor using n-gram models (unigram, bigram, trigram) with backoff logic, implemented in Rust. The piece explains why Rust is well-suited for real-time keystroke prediction — no GC pauses, predictable performance, fearless concurrency, and a single deployable binary — while connecting Shannon's original insight about language statistics to modern language models.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@aaronphilip2003/your-iphone-keyboard-is-running-1948-math-385d39e7c2cc>

## Similar posts on daily.dev

- [Markov Chains are the Original Language Models](https://daily.dev/posts/markov-chains-are-the-original-language-models-pdmbnuegj) · Hacker News · 4 upvotes · 0 comments
- [Security reserchers tricked Apple Intelligence into cursing](https://daily.dev/posts/security-reserchers-tricked-apple-intelligence-into-cursing-bj4vjxidi) · The Register · 0 upvotes · 0 comments
- [QuickQWERTY 1.2.2](https://daily.dev/posts/quickqwerty-1-2-2-621g8hixf) · Susam Pal · 0 upvotes · 0 comments

---

Tags: [#nlp](https://daily.dev/tags/nlp), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Your iPhone Keyboard Is Running 1948 Math","url":"https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa"},"datePublished":"2026-07-17T19:29:16.184Z","dateModified":"2026-07-17T19:30:40.453Z","description":"A walkthrough of the statistical foundations behind iPhone's QuickType keyboard, tracing the idea back to Claude Shannon's 1948 information theory paper. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/415555e2201ccaffeefa5f0299dd88d7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/415555e2201ccaffeefa5f0299dd88d7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/your-iphone-keyboard-is-running-1948-math-xvczgqxfa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"nlp,rust","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Your iPhone Keyboard Is Running 1948 Math"}]}
```

