patronymicNameLocale Aware

Mock Jutsu HOW-TO | UK

In the realm of modern software development, generating realistic test data is essential for ensuring application robustness and cultural accuracy. The patronymic function within the mock-jutsu library provides developers with a reliable way to generate authentic patronymic middle names, which are a foundational component of naming conventions in several Eastern European and Central Asian cultures, most notably within the Russian locale. By using mock-jutsu, engineers can move beyond simple placeholder strings and simulate real-world user profiles that require more than just a standard first and last name structure.

The algorithm behind the patronymic generator follows established linguistic rules to ensure high-fidelity mock data. In many Slavic languages, a patronymic is derived from the father's given name by appending specific suffixes based on the gender of the individual. For instance, the library produces names like "Ivanovich" or "Sergeyevna" by applying these morphological transformations to a database of traditional names. This attention to detail ensures that the test data generated is not only diverse but also contextually appropriate for applications targeting specific geographical markets where middle names are legally and socially significant.

Incorporating the patronymic function into your testing scenarios is particularly beneficial for validating internationalisation and localisation workflows. Developers can use this feature to test database schema constraints, form validation logic, and automated document generation services that must handle complex naming structures without failing. Whether you are building a KYC system for a financial institution or a CRM for a global enterprise, having access to high-quality mock data that reflects these cultural nuances is critical for identifying edge cases and ensuring data integrity before code reaches the production environment.

One of the primary developer benefits of mock-jutsu is its versatility across different technical environments. The patronymic function can be invoked seamlessly through the command-line interface for quick data generation, integrated directly into Python scripts for automated unit testing, or utilised within JMeter for performance benchmarking via the custom function syntax. This multi-platform support ensures that whether you are a QA engineer or a backend developer, generating accurate patronymic test data remains a frictionless part of your development lifecycle, ultimately leading to more resilient and globally aware software products.

CLI Usage
mockjutsu generate patronymic --locale RUmockjutsu generate patronymic --locale DEmockjutsu bulk patronymic --count 10 --locale TRmockjutsu export patronymic --count 10 --format json --locale TRmockjutsu export patronymic --count 10 --format csv --locale TRmockjutsu export patronymic --count 10 --format sql --locale TRmockjutsu generate patronymic --gender male# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate patronymic --locale TR --maskmockjutsu bulk patronymic --count 5 --locale TR --mask
Python API
from mockjutsu import jutsujutsu.generate('patronymic', locale='TR')jutsu.bulk('patronymic', count=10, locale='TR')jutsu.template(['patronymic'], count=5, locale='TR')# with --gender parameterjutsu.generate('patronymic', gender='male', locale='TR')# mask=True: regulation-compliant outputjutsu.generate('patronymic', locale='TR', mask=True)jutsu.bulk('patronymic', count=5, locale='TR', mask=True)
JMeter
${__mockjutsu_identity(patronymic,TR)}${__mockjutsu_identity(patronymic:male)}# JMeter Function: __mockjutsu_identity# Parameter 1: patronymic OR patronymic:# Qualifier values: male|female# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_identity(patronymic,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(patronymic,TR,mask)}
REST API
GET /generate/patronymic?locale=TR# → {"type":"patronymic","result":"...","status":"ok"}GET /bulk/patronymic?count=10&locale=TRPOST /template {"types":["patronymic"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/patronymic?locale=TR&mask=trueGET /bulk/patronymic?count=5&locale=TR&mask=true

Parameters

Parameter Values Description
--locale TR|UK|US|DE|FR|RU Region / locale for locale-aware output
--gender male|female Filter output by gender
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages