Implement sentence generation

Fixes #2