# doctrine/inflector

Doctrine Inflector is a small library that can perform string manipulations with regard to uppercase/lowercase and singular/plural forms of words.

Repository: https://github.com/doctrine/inflector
Canonical: https://ross.abutalabs.com/products/inflector
Homepage: https://www.doctrine-project.org/projects/inflector.html
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-06-21T04:01:42+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 42, longevity 100
- inputs: {"age_days": 4983, "days_push": 73, "days_rel": 388, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11340, forks 140 (observed 2026-08-28T04:10:46.814805+00:00)

## What it is
Doctrine Inflector is a small PHP library for string inflection, handling uppercase/lowercase conversions, pluralization, singularization, and camelCase/underscore conversion. It supports multiple languages including English, Spanish, French, Turkish, and others via a factory or customizable rulesets.

## Use cases
- pluralize and singularize English words in PHP
- convert camelCase strings to snake_case for database table names
- convert table names back to class names
- capitalize words with custom delimiters
- inflect words in Spanish, French, Turkish, or other supported languages
- add custom pluralization and singularization rules

## When to choose
- you need word inflection (plural/singular) in a PHP project
- you need case conversion between camelCase, snake_case, and capitalized forms
- you need multilingual inflection support with extensible rules
- you want a tiny, battle-tested library with huge ecosystem adoption

## When to avoid
- you need general-purpose natural language processing beyond word inflection
- your language is not among the supported ones and you cannot contribute rules
- you work outside the PHP ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: nlp, internationalization, developer-tools
- domain: developer-tools
- platform: php
- tags: string-manipulation, pluralization, singularization, camelcase, inflection, doctrine, natural-language-processing, localization

## Member repositories
- doctrine/inflector (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:46.814805+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-29T17:15:43.085420+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/inflector (fetched 2026-08-28T04:10:46.814805+00:00, sha d6c532a2ed15)
  - homepage: https://www.doctrine-project.org/projects/inflector.html (fetched 2026-08-29T08:14:36.309812+00:00, sha 35f55b55f67c)
  - site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.1/index.html (fetched 2026-08-29T08:14:36.312656+00:00, sha 1ff4b7506817)
  - site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.2/index.html (fetched 2026-08-29T08:14:36.315363+00:00, sha 7f805df255df)
  - site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.0/index.html (fetched 2026-08-29T08:14:36.318164+00:00, sha 59beff88b8ef)
  - site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/1.4/index.html (fetched 2026-08-29T08:14:36.320715+00:00, sha 0eca88b4ad2d)
  - site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/1.3/index.html (fetched 2026-08-29T08:14:36.323067+00:00, sha f90961f54d74)
- Data as of 2026-08-30T08:39:29.467469+00:00.
