View Source Fixtures.Names (Fixtures v0.0.11)

Name generation.

Summary

Functions

A random first name.

A random honorific.

A random name including first and surname.

A random name including first and surname.

A random surname.

A random username.

Functions

@spec first_name(Keyword.t()) :: String.t()

A random first name.

Possible to pass either :female or :male as :sex to limit names to those commonly associated with either sex.

Link to this function

first_name(settings, key, opts \\ [])

View Source
@spec first_name(Keyword.t(), atom(), Keyword.t()) :: String.t()

A random first name.

Possible to pass either :female or :male as :sex to limit names to those commonly associated with either sex.

@spec honorific(Keyword.t()) :: String.t()

A random honorific.

Link to this function

honorific(settings, key, opts \\ [])

View Source
@spec honorific(Keyword.t(), atom(), Keyword.t()) :: String.t()

A random honorific.

@spec name(Keyword.t()) :: String.t()

A random name including first and surname.

Possible to pass either :female or :male as :sex to limit names to those commonly associated with either sex.

Link to this function

name(settings, key, opts \\ [])

View Source
@spec name(Keyword.t(), atom(), Keyword.t()) :: String.t()

A random name including first and surname.

Possible to pass either :female or :male as :sex to limit names to those commonly associated with either sex.

@spec surname(Keyword.t()) :: String.t()

A random surname.

Link to this function

surname(settings, key, opts \\ [])

View Source
@spec surname(Keyword.t(), atom(), Keyword.t()) :: String.t()

A random surname.

@spec username(Keyword.t()) :: String.t()

A random username.

Link to this function

username(settings, key, opts \\ [])

View Source
@spec username(Keyword.t(), atom(), Keyword.t()) :: String.t()

A random username.