wlinds / tpme

This Person Might Exist - Synthetic dataset generation
2 stars 0 forks source link

Transliterate characters in mail addresses #6

Closed wlinds closed 8 months ago

wlinds commented 8 months ago

Some characters 'å', 'ä', 'ö', could be replaced with a and o when generating email addresses.

wlinds commented 8 months ago

Argument for gen_email() updated.

if not allow_foreign_characters:
    name = re.sub(r'[^a-zA-Z0-9 ]', '_', name)

Issue will be closed.