Take the 2-minute tour ×
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.