Giter Site home page Giter Site logo

name-machine's Issues

Repo

It must be a nice library, but it's apparently absent in Maven Central (at least it's what my error message suggests). Do you think you can include a few notes in your readme file on how to add the project's repository in one's pom.xml file?

compile gradle

Hi,

getting this error when I sync!

dependencies {
compile 'org.ajbrown:NameMachine:0.1.1'
}

Error:Failed to resolve: org.ajbrown:NameMachine:0.1.1

Pre-format names as capitalized

Instead of capitalizing the names as they're being generated, we can save a few cycles by fixing the format in the seed files themselves.

Optimize memory usage when outputting names.

the NameGenerator builds a list of random names by the count it's provided, and then supplies that payload to NameMachine for output. That means that if I want 500k names, it has to load all 500k into memory before it can begin outputting them.

If we were to output them as they're being generated, that memory would be saved.

Allow setting generation options on each pass

The http://namemachine.xyz API allows the specification of gender probability. Because of this, a new instance of NameGenerator has to be instantiated for each request, which means parsing the names files every since time.

This would be much more efficient if options could be specified each time. We could then keep one generator in application state.

To keep the API consistent and compatible, the current method of specifying options should set the default options that are used if options aren't specified for a particular invocation.

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.