Skip to content

PoliceOfficer entity

Generate police officers with identity, badge, rank, assignment, experience, and contact data.

Why: Use PoliceOfficer when public-safety scenarios need coherent identity, badge, rank, assignment, experience, and contact data; use Person when occupational fields are not required.

1
<variable name="value" entity="PoliceOfficer"/>

Output: Typed PoliceOfficer value.

Parameters

  • dataset: str | null; Default None — Country dataset used for officer identity, assignment, and contact values.

Attributes

  • address (dict): Structured postal address fields.
  • age (int): Age in years derived from birthdate.
  • badge_number (str): Badge number.
  • birthdate (datetime): Date of birth in generator timezone.
  • certifications (list[str]): Professional certifications.
  • department (str): Department where the officer works.
  • email (str): Primary email address.
  • family_name (str): Localized family name (surname).
  • full_name (str): Concatenated full name.
  • gender (str): Gender token emitted by configured dataset.
  • given_name (str): Localized given name (first name).
  • hire_date (str): Hire date.
  • languages (list[str]): Languages spoken.
  • officer_id (str): Synthetic officer identifier.
  • phone (str): Generic contact phone number.
  • rank (str): Officer rank.
  • shift (str): Assigned shift.
  • unit (str): Unit the officer is assigned to.
  • years_of_service (int): Years of service.

Limits

The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.