# square/phrase

Phrase is an Android string resource templating library

Repository: https://github.com/square/phrase
Canonical: https://ross.abutalabs.com/products/phrase
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2023-03-18T23:29:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4607, "days_push": 1264, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1392, forks 125 (observed 2026-08-28T04:04:36.065102+00:00)

## What it is
Phrase is an Android string resource templating library that lets developers format template strings with named placeholders like {first_name} and insert the result directly into TextViews. It also includes ListPhrase for joining items into comma-separated or sentence-style lists.

## Use cases
- format Android string resources with named placeholders
- replace String.format with readable template syntax
- insert formatted text directly into a TextView
- build comma-separated lists in Android
- format English sentence-style lists like 'a, b, and c'
- avoid lint warnings from positional format specifiers

## When to choose
- you're building an Android app in Java and want readable string templating
- you need to format user-facing strings with named placeholders
- you want to join collections into human-readable lists

## When to avoid
- you're not developing for Android or the JVM
- you need complex templating with conditionals or loops
- your project is in Kotlin and you prefer modern alternatives
- you need actively maintained software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, internationalization
- domain: mobile-development, android-tools
- platform: jvm
- tags: string-formatting, android-strings, text-templating, list-formatting, localization, android

## Member repositories
- square/phrase (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.065102+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:33.677136+00:00, confidence not recorded.
  - readme: https://github.com/square/phrase (fetched 2026-08-28T04:04:36.065102+00:00, sha ea5e998cbfa2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
