2017 © Pedro Peláez
 

library naija-pikin

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.

image

stigwue/naija-pikin

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.

  • Wednesday, July 25, 2018
  • by stigwue
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 200 % Grown

The README.md

Naija Pikin

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities. Available at stigwue/naija_pikin., (*1)

Basically, it combines an adjective pulled from adjectivesthatstart.com and a noun (a Nigerian name pulled from faker.ng)., (*2)

I have not gone thorugh the adjectives to remove insultive ones!, (*3)

Installation

Installation is via composer., (*4)

composer require stigwue/naija-pikin

Usage

There are more examples in the example.php file but below is a simple one., (*5)

$np = new NaijaPikin('path_to_to/naija_pikin/dictionary.json');

$name = $np->getName();

echo $name;

Functions

getNoun

getNoun takes two optional parameters: randomize, a boolean parameter (default value true) and noun, a string parameter (default value Igwue)., (*6)

If randomize is true, a random noun is selected from the supplied dictionary. If false, the supplied noun parameter is returned., (*7)

getAdjective

getAdjective takes three optional parameters: randomize, a boolean parameter (default value true), letter, a character parameter (default value blank) and adjective, a string parameter (default value Irresistible)., (*8)

If randomize is true, a random adjective with starting letter same as letter is selected from the supplied dictionary. If false, the supplied adjective parameter is returned., (*9)

getName

getName takes a single optional parameter: randomize, a boolean parameter (default value true)., (*10)

It combines an adjective with a noun., (*11)

If randomize is true, a random name is generated. If false, the default, Irresistible Igwue is returned., (*12)

To Do

  • Remove insultive adjectives or put in a flag to exclude them.

The Versions

25/07 2018

dev-master

9999999-dev

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.

  Sources   Download

MIT

user nigeria anonymize

03/07 2018

v0.3

0.3.0.0

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.

  Sources   Download

MIT

user nigeria anonymize

25/09 2017

v0.2

0.2.0.0

A funny and hopefully non-annoying way to pick random names for unregistered users or anonymize identities.

  Sources   Download

MIT

user nigeria anonymize