Fix bug in deciding when to stop the chain

This was using the number of choices for the _next_ word to decide whether or not to stop... not the
number of words in the chain.
Consider closing parentheses as sentence completion
Log which language is being generated