twitter/twitter-text
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4291
- days_rel: n/a
- days_push: 859
- n_releases_24m: 0
Adoption not part of the score
3139 stars · 531 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A collection of official Twitter libraries and conformance tests for parsing and tokenizing Tweet text. It determines character counts and identifies URLs, @usernames, #hashtags, and $cashtags in text.
Use cases
- count characters in a tweet correctly with weighted unicode and emoji
- extract hashtags and cashtags from tweet text
- auto-link @mentions and URLs in tweets
- validate tweet length before posting via the API
- parse tweet entities in Java, Ruby, JavaScript, or Objective-C
When to choose
- you need Twitter/X-compatible tweet text parsing and character counting
- you want conformance-tested implementations across multiple languages
- you're building a Twitter client or posting tool
When to avoid
- you need general-purpose NLP beyond tweet text parsing
- you need actively developed features for new X platform changes
- your language isn't Java, Ruby, JavaScript, or Objective-C and you can't use community ports
Facets
library · maturity maintenance
parser nlp serialization social-media developer-tools apis jvm ruby cross-platform twitter tweet-parsing unicode emoji text-extraction conformance-tests hashtags mentions natural-language-processing nodejs
2 sources
- readme: https://github.com/twitter/twitter-text · fetched 2026-08-28 · 6049a43df0c9
- homepage: https://developer.twitter.com/en/docs/counting-characters · fetched 2026-08-29 · 64b528ff59ff
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| twitter/twitter-text | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="twitter/twitter-text")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem