lib/generator/lorem.js
function(lang, data) {
			if (typeof data === 'string') {
				data = {
					words: data.split(' ').filter(function(item) {
						return !!item;
					})
				};
			} else if (Array.isArray(data)) {
				data = {words: data};
			}

			langs[lang] = data;
		}
function(lang, data) {
			if (typeof data === 'string') {
				data = {
					words: data.split(' ').filter(function(item) {
						return !!item;
					})
				};
			} else if (Array.isArray(data)) {
				data = {words: data};
			}

			langs[lang] = data;
		}
function ( lang , data ) { if ( typeof data === 'string' ) { data = { words : data . split ( ' ' ) . filter ( function ( item ) { return ! ! item ; } ) } ; } else if ( Array . isArray ( data ) ) { data = { words : data } ; } langs [ lang ] = data ; }
Adds new language words for Lorem Ipsum generator
@param {String} lang Two-letter lang definition
@param {Object} data Words for language. Maight be either a space-separated
list of words (String), Array of words or object with <code>text</code> and
<code>common</code> properties
Adds new language words for Lorem Ipsum generator