Skip to content

NobilityTitleGenerator generator

Generate locale-aware nobility titles from the configured dataset.

Why: Use NobilityTitleGenerator when locale-specific person fixtures deliberately model rare nobility titles; omit it when the business schema has no title concept.

Category: person.

Output: str | null.

1
<key name="value" generator="NobilityTitleGenerator(dataset='DE', gender='female', noble_quota=0.05)"/>

Parameters

  • dataset: str | null; Default None — Country dataset supplying locale-specific nobility titles.
  • gender: str | null; Default None — Optional gender category used to select matching titles.
  • noble_quota: float | null; Default None — Probability that a row receives a nobility title instead of no value.