Example Usage

Below is a basic example of how to use each of the four functions included in this package.

Imports

# Load all required package functions
from nameforme.nameforme import find_name
from nameforme.nameforme import find_old_name
from nameforme.nameforme import find_similar_name
from nameforme.nameforme import find_unisex_name

Fuctions

1. find_name()

A function to generate a random set of 10 suggested baby names based on the given limitations.

  • if the given limitation can match to at least 10 names, a list of 10 names will be provided

find_a = find_name("F", "A", length=3)
find_a
['Ava', 'Ani', 'Aja', 'Ann', 'Ana', 'Ada', 'Ari', 'Ali', 'Ami', 'Amy']
  • if the given limitation can only match less than 10 names, all matched names will be provided

find_b = find_name("m", "b", length=9)
find_b
['Broderick']

2. find_old_name()

A funtion to generate a random set of suggested neutral(by default) baby names based on the given time period and sex.

old_name = find_old_name('1980s', limit=3)
old_name
['Idris', 'Meghan', 'Demetrice']

3. find_similar_name()

A funciton to generate a random list of names that sound similar to a given user input name.

similar_name = find_similar_name('Daniel', limit=5)
similar_name
['Danna', 'Diana', 'Denine', 'Danica', 'Kynlee']

4. find_unisex_name()

A function to generate the a random set of suggested neutral baby names based on the given limitation and baby names in the past years.

unisex_name = find_unisex_name(bar=0.02, limit=7)
unisex_name
['Alva', 'Kerry', 'Marion', 'Royal', 'Cleo', 'Skylar', 'Baylor']