Skip to content

Rename first_name_prefixes to bound_first_names#203

Merged
derek73 merged 1 commit into
masterfrom
rename-first-name-prefixes-to-bound-first-names
Jul 4, 2026
Merged

Rename first_name_prefixes to bound_first_names#203
derek73 merged 1 commit into
masterfrom
rename-first-name-prefixes-to-bound-first-names

Conversation

@derek73

@derek73 derek73 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • first_name_prefixes was named in a way that clashes with the project convention that "prefix" (PREFIXES, NON_FIRST_NAME_PREFIXES) refers to last-name particles — this attribute is actually about bound given-name prefixes.
  • Since this was added in the still-unreleased 1.3.0 (feat: add first_name_prefixes for Arabic given-name prefix joining (#150) #186), it's a clean rename rather than a deprecation shim.
  • Renamed throughout: FIRST_NAME_PREFIXESBOUND_FIRST_NAMES, first_name_prefixes.pybound_first_names.py, the Constants.first_name_prefixes attribute/kwarg → bound_first_names, and the parser helpers is_first_name_prefix/_join_first_name_prefixis_bound_first_name/_join_bound_first_name.
  • Updated docs/customize.rst, docs/release_log.rst, AGENTS.md, and test files (including a file rename) to match.
  • NON_FIRST_NAME_PREFIXES is untouched — it correctly refers to last-name-side prefixes and still fits the naming convention.

Test plan

  • python3 -m pytest -q — 1236 passed, 4 skipped, 22 xfailed

The name first_name_prefixes clashed with the project convention that
"prefixes" (PREFIXES, NON_FIRST_NAME_PREFIXES) refer to last-name
particles. Since this Constants attribute hasn't been released yet
(added in the unreleased 1.3.0), rename it and its helpers
(is_first_name_prefix, _join_first_name_prefix) to bound_first_names /
is_bound_first_name / _join_bound_first_name across config, parser,
tests, and docs.
@derek73 derek73 self-assigned this Jul 4, 2026
@derek73 derek73 added this to the v1.3.0 milestone Jul 4, 2026
@derek73 derek73 merged commit 370626f into master Jul 4, 2026
8 checks passed
@derek73 derek73 deleted the rename-first-name-prefixes-to-bound-first-names branch July 4, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant