an earley parser and a random sentence generator