fullnameNameLocale Aware

Mock Jutsu HOW-TO | EN

The fullname function is a core component of the Name category within the mock-jutsu library, designed to provide high-quality, realistic person identities for various software development needs. Generating high-fidelity mock data is essential for creating believable user interfaces and robust backend systems. This function streamlines the process of acquiring a complete name by concatenating a first name and a last name into a single string, such as Emre Kaya. By using mock-jutsu, developers can bypass the tedious task of manually inventing names, ensuring that their test data remains diverse and culturally relevant across different regions and demographics.

Under the hood, the fullname function utilizes a sophisticated localization algorithm that references extensive datasets categorized by geographic and linguistic standards. When a developer requests a name for a specific locale, the library intelligently pairs common given names with traditional surnames from that specific region. This algorithmic approach ensures that the fullname generated is not just a random string of characters but a linguistically accurate representation of a real-world identity. This level of precision is vital for internationalization testing, where name structures, honorifics, and character sets vary significantly across global markets.

For developers, the versatility of this function across different environments is a major benefit. Whether you are working directly in a terminal using the CLI command "mockjutsu generate fullname", integrating it into a Python script via "jutsu.generate('fullname')", or performing load testing in JMeter with the syntax "${__mockjutsu(fullname,)}", the consistency remains the same. This cross-platform compatibility allows engineering teams to maintain a unified source of truth for their mock data requirements throughout the entire software development lifecycle, from initial prototyping to final quality assurance and staging.

Implementing the fullname function is particularly advantageous in scenarios such as database seeding, where thousands of unique records are needed to simulate a production environment. It is also indispensable for user acceptance testing and performance benchmarking, where realistic test data helps identify potential bottlenecks in sorting, indexing, or search algorithms. By leveraging mock-jutsu, teams can focus on core logic rather than data preparation, resulting in faster deployment cycles and more resilient applications that are ready for the complexities of real-world user interactions.

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