Giter Site home page Giter Site logo

lorem's People

Contributors

debuglevel avatar dependabot[bot] avatar johnjohndoe avatar marekmatula avatar mdeanda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lorem's Issues

Ramdom Email addresses

It would be nice to have a Lorem.getEmail() that returns a random email address (based on a set of firstname, lastname and domain URL, such as gmail.com, yahoo.com.....).

Only one space after dots.

loremIpsum.getParagraphs(0, 6) places two spaces after each dot. That's a little odd :-)

Nonnostrum tractatos autem reprimique euismod pharetra animal.  Omnesqueeloquentiam utamur lobortis.
                                                              ^^

Great package, btw :-)

Random countries

It would be nice to have a Lorem.getCountry() that returns a random country (based on a list of countries such as http://www.state.gov/misc/list/). This would be complementary to Lorem.getStateAbbr()and Lorem.getZipCode()

Push to Maven Central

I like to encourage you to push you library to Maven Central. There is just one other library like this and it would be very helpful if your library is available from the central repository.

getEmail() returns adresses with whitespaces

Hi, just encountered the following issue:

Problem: Whitespaces in RFC 5322 local parts of the mail address. It's allowed by RFC 5322 but uncommon to use in a "simple" API.

javax.mail.internet.AddressException: Local address contains control or whitespace in string lester.de la [email protected]''`

The code behind this Exception created random mails for testing:

Lorem lorem = LoremIpsum.getInstance();
MimeMessage multipartMessage = new MimeMessage(...);
multipartMessage.setFrom(new InternetAddress(lorem.getEmail()));
...

Solution: Maybe change the "default" behaviour to generate local parts without whitespaces?

License?

Great code! I was wondering under what kind of license you published your generator?

Add some simple Classes

@mdeanda

From time to time, especially when do some new tech test or demo, we need use random Class. Only String is not enough.

What about add some random simple classes, such as Animal(Interface), Cat(class implement Animal), Dog(class implement Animal), and can make random of them.

BTW, I really like your lib, thanks a lot!

Jiming

Ramdom Cities

It would be nice to have a Lorem.getCity() that returns a random city (based on a list of cities). This would be complementary to Lorem.getStateAbbr()and Lorem.getZipCode()

Need company names or custom word list.

This is pretty good, but it would be nice if the loreum.txt file could be replaced by feeding the Constructor a file. I wanted to have company name type things in there like arrow star micro computer soft com etc. or maybe if we could make custom categories and feed them words.

Release?

Any chance of publishing a release - you have unreleased changes that we need that have been sitting unreleased for years :)
(namely constructor that takes a Random)

Ramdom URLs

It would be nice to have a Lorem.getURL() that returns a random URL (based on a set of based URL, such as bit.ly, google.com, yahoo.com.....).

And, why not, having a Lorem.getURL(int min, int max) that would return a random number of query parameters. For example, calling Lorem.getURL(1, 2) could return http://www.google.com?lorem=ipsum&sit=amet

Slim Gradle And Maven Version

Hey there!

Thinking of picking up this library for my project, but I was wondering if there's a light version available that only contains the actual lorem dummy text?

Just for those like me who don't need all that phone and city stuff and would like to keep their imports as slim as possible.

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.