Skip to content

GHamrouni/brandon.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brandon.js : The brand name generator

You must already have spent a lot of time searching for THE suitable title your project should have. The main problem with this task is that usually the names you chose already exist, the best way might be to have a lot of good sounding names generated automatically and then all you’ll have to do is choose.

This little library automates the task of generating good sounding names given a set of chosen words.

For further informations you can read this article http://www.iptech-group.com/node/438

Limitations

Unlike the mentioned article, we don't use weights in our implementation of the objective function. The Monte Carlo Method used to optimize our objective function could be vastly improved using standard sampling algorithms.

Using this library

var text =  "Jacob Sophia Mason Isabella William Emma " + 
			"Jayden Olivia Noah Ava Michael Emily Ethan Abigail " + 
			"Alexander Madison Aiden Mia Daniel Chloe";

var trainingSet = text.split(/\b\s+/);

var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

// Create a solution set of words containing 4 characters
var solutionSet = new brandon.SolutionSet(alphabet, 4);

var ngen = new brandon.NameGenerator(alphabet);

ngen.build(trainingSet);

// Generate five candidates using 3000 iterations !
var solutions = solutionSet.findSolutions(ngen, 5, 3000);

var sbuffer = [];

for (var i = 0; i < solutions.length; i += 1)
{
	sbuffer.push(solutions[i].value);
}

// Print the output
alert(sbuffer);

About

The brand name generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published