Files
Microsoft-Rewards-Bot/src/account-creation/nameDatabase.ts
LightZirconite 6be9cca80f feat: Implement account creation module with realistic data generation
- Add DataGenerator class for generating emails, passwords, birthdates, and names.
- Create README.md detailing features, usage, and process flow for account creation.
- Develop CLI for initiating account creation with optional referral URL.
- Introduce nameDatabase for realistic first and last name generation.
- Define CreatedAccount interface for structured account data.
2025-11-07 20:45:18 +01:00

47 lines
2.8 KiB
TypeScript

// Realistic name database for account creation
export const NAME_DATABASE = {
firstNames: {
male: [
'James', 'John', 'Robert', 'Michael', 'William', 'David', 'Richard', 'Joseph', 'Thomas', 'Charles',
'Daniel', 'Matthew', 'Anthony', 'Mark', 'Donald', 'Steven', 'Paul', 'Andrew', 'Joshua', 'Kenneth',
'Kevin', 'Brian', 'George', 'Timothy', 'Ronald', 'Edward', 'Jason', 'Jeffrey', 'Ryan', 'Jacob',
'Nicolas', 'Lucas', 'Nathan', 'Benjamin', 'Samuel', 'Alexander', 'Christopher', 'Dylan', 'Logan',
'Ethan', 'Mason', 'Liam', 'Noah', 'Oliver', 'Elijah', 'Aiden', 'Jackson', 'Sebastian', 'Jack'
],
female: [
'Mary', 'Patricia', 'Jennifer', 'Linda', 'Barbara', 'Elizabeth', 'Jessica', 'Susan', 'Sarah', 'Karen',
'Lisa', 'Nancy', 'Betty', 'Margaret', 'Sandra', 'Ashley', 'Kimberly', 'Emily', 'Donna', 'Michelle',
'Carol', 'Amanda', 'Dorothy', 'Melissa', 'Deborah', 'Stephanie', 'Rebecca', 'Sharon', 'Laura', 'Cynthia',
'Emma', 'Olivia', 'Ava', 'Isabella', 'Sophia', 'Mia', 'Charlotte', 'Amelia', 'Harper', 'Evelyn',
'Abigail', 'Emily', 'Madison', 'Ella', 'Scarlett', 'Grace', 'Chloe', 'Victoria', 'Riley', 'Aria'
],
neutral: [
'Alex', 'Jordan', 'Taylor', 'Morgan', 'Casey', 'Riley', 'Avery', 'Jamie', 'Quinn', 'Reese',
'Skylar', 'Cameron', 'Drew', 'Blake', 'Sage', 'River', 'Phoenix', 'Charlie', 'Dakota', 'Rowan'
]
},
lastNames: [
'Smith', 'Johnson', 'Williams', 'Brown', 'Jones', 'Garcia', 'Miller', 'Davis', 'Rodriguez', 'Martinez',
'Hernandez', 'Lopez', 'Gonzalez', 'Wilson', 'Anderson', 'Thomas', 'Taylor', 'Moore', 'Jackson', 'Martin',
'Lee', 'Perez', 'Thompson', 'White', 'Harris', 'Sanchez', 'Clark', 'Ramirez', 'Lewis', 'Robinson',
'Walker', 'Young', 'Allen', 'King', 'Wright', 'Scott', 'Torres', 'Nguyen', 'Hill', 'Flores',
'Green', 'Adams', 'Nelson', 'Baker', 'Hall', 'Rivera', 'Campbell', 'Mitchell', 'Carter', 'Roberts',
'Turner', 'Phillips', 'Evans', 'Collins', 'Stewart', 'Morris', 'Rogers', 'Reed', 'Cook', 'Morgan',
'Bell', 'Murphy', 'Bailey', 'Cooper', 'Richardson', 'Cox', 'Howard', 'Ward', 'Peterson', 'Gray',
'James', 'Watson', 'Brooks', 'Kelly', 'Sanders', 'Price', 'Bennett', 'Wood', 'Barnes', 'Ross',
'Henderson', 'Coleman', 'Jenkins', 'Perry', 'Powell', 'Long', 'Patterson', 'Hughes', 'Flores', 'Washington'
]
}
export function getRandomFirstName(): string {
const categories = ['male', 'female', 'neutral']
const category = categories[Math.floor(Math.random() * categories.length)] as keyof typeof NAME_DATABASE.firstNames
const names = NAME_DATABASE.firstNames[category]
return names[Math.floor(Math.random() * names.length)] || 'Alex'
}
export function getRandomLastName(): string {
const names = NAME_DATABASE.lastNames
return names[Math.floor(Math.random() * names.length)] || 'Smith'
}