src/lib/Person.js
/**
   * @param {Gender} gender Person's gender to get the prefix from. It does nothing when the language does not make a distinction between male and female prefixes.
   * @returns {string} Randomly picked prefix for a person.
   */
@param {Gender} gender Person's gender to get the prefix from. It does nothing when the language does not make a distinction between male and female prefixes.
@returns {string} Randomly picked prefix for a person.
@param { Gender } gender Person ' s gender to get the prefix from . It does nothing when the language does not make a distinction between male and female prefixes . @returns { string } Randomly picked prefix for a person .
prefix(gender) {
    const names = this[localeValue].person.prefix || enLocale.person.prefix;
    if (Array.isArray(names.general) && names.general.length) {
      return this[randomValue].pickOne(names.general);
    }
    const safeGender = genderPool.includes(gender) ? gender : this[randomValue].pickOne(genderPool);
    const pool = names[safeGender];
    return this[randomValue].pickOne(pool);
  }
prefix ( gender ) { const names = this [ localeValue ] . person . prefix || enLocale . person . prefix ; if ( Array . isArray ( names . general ) && names . general . length ) { return this [ randomValue ] . pickOne ( names . general ) ; } const safeGender = genderPool . includes ( gender ) ? gender : this [ randomValue ] . pickOne ( genderPool ) ; const pool = names [ safeGender ] ; return this [ randomValue ] . pickOne ( pool ) ; }
@param {Gender} gender Person's gender to get the prefix from.
@param { Gender } gender Person ' s gender to get the prefix from .