Code Monkey home page Code Monkey logo

brandon.js's Introduction

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);

brandon.js's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.