patronymicNameLocale Aware

Mock Jutsu HOW-TO | EN

The patronymic function within the mock-jutsu library is a specialized tool designed to generate realistic middle names based on paternal lineage, a naming convention deeply rooted in Eastern Slavic cultures. When developers need high-quality mock data for applications targeting specific regions like Russia, Belarus, or Ukraine, providing just a first and last name is often insufficient for full demographic accuracy. This function bridges the gap by producing linguistically accurate patronymics, such as "Ivanovich" or "Petrovna," ensuring that your test data mirrors the complexity of real-world identity structures and cultural nuances.

Under the hood, mock-jutsu utilizes a sophisticated algorithm based on traditional grammatical rules to derive these names. In Russian naming conventions, a patronymic is formed by adding specific suffixes to the father's given name, which vary based on the gender of the individual. For instance, masculine forms typically end in "-ovich" or "-evich," while feminine forms use "-ovna" or "-evna." By automating this process, the library ensures that the generated test data remains consistent and culturally appropriate, preventing the common pitfall of using generic or nonsensical placeholders that could break validation logic or UI layouts during software testing.

Integrating this function into your development workflow is seamless across various environments. Whether you are using the command-line interface for quick data generation, the Python API for dynamic script execution, or the JMeter plugin for performance testing, mock-jutsu provides a unified and intuitive syntax. Developers benefit significantly from this versatility, as it allows for the rapid seeding of databases or the simulation of complex user profiles without the need for manual entry. For QA engineers, having access to authentic patronymics is vital for testing edge cases in form validation, search indexing, and internationalization (i18n) workflows where name length and character encoding are critical factors.

Ultimately, the patronymic function enhances the robustness of your test data by providing a layer of realism that standard name generators often overlook. It is an essential component for teams building globalized software, ensuring that every user interface element—from profile pages to legal documents—is tested against data that reflects actual demographic patterns. By leveraging mock-jutsu to automate the creation of these specialized strings, developers can focus on core application logic while maintaining a high standard of data integrity and cultural accuracy throughout the entire software development lifecycle.

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