|This is another topic for latest version (2012-08-18).|
I thought about Lorem::getPlain() and related methods.
Diff file is on https://gist.github.com/3396632
I think it's better that Lorem::getWords() treats
$words array as return value, not as reference argument.
Lorem::getPlain() initializes $words and
passes it to Lorem::getWords() in original implementation.
If Lorem::getWords() is supposed to always start running
with empty array, I think it is preferable that
Lorem::getWords() itself has the responsibility to do so.
If it is guaranteed that always $commas <= $count,
We can also implement like diff file.
Code will be simple by using array_slice().
By using implode() for preparing return value,
space will not be added to the tail of $output.