public NameGenerator(String[] words, String separator, boolean allowDuplicates, int nWordsToTake)
	{
		if (words.length == 0)
			throw new IllegalArgumentException("Empty words array passed");
		
		this.words = words;
		this.allowDuplicates = allowDuplicates;
		this.separator = separator;
		this.nWordsToTake = nWordsToTake > 0 && nWordsToTake <= words.length ? nWordsToTake : (words.length >= 2 ? 2 : words.length);
	}