English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hope that this computational linguistics question is not an off-topic here.

For my little just-for-fun programming project I'm looking for common English phrase part-of-speech patterns to use to generate pseudo-natural-language phrases.

But, unfortunately, I'm lost in the terminology, and can't figure out the proper keywords to google up what I'm looking for.

What I look for is a set of patterns like this one:

<Noun> <verb> <adjective> <verb>.

...or this one (which does contain some actual words instead of placeholders):

<Adverb>, the <adverb> <adjective>, <adverb> <adjective> <noun> 
and the <adverb> <adjective>, <adverb> <adjective> <noun>
<verb> <adverb> over the <adverb> <adjective> <noun>.

So, any clues?

share|improve this question
up vote 3 down vote accepted

I think you are looking for sentence patterns or grammar patterns. Here is a page with a random sentence generator that can use several patterns: http://www.manythings.org/rs/

Here are a few more pages with some more information about sentence patterns:

share|improve this answer

Not sure I know what the terms you are looking for are, but you might find out by going through the tutorials and free book courtesy of nltk.org.

You'd have to learn a least a bit of python, but it'll definitely do as a quick introduction to computational linguistics.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.