Rules of Parts of Speech for Computer Project

   Share on Facebook  
Guest  #108590  Tue, 14 Jun 05 06:25 AM
This is probably a really dumb question, but I figure I will ask anyways. I am trying to write a computer program that parses a sentance and determines wether or not that sentance is grammatically accurate. What I need and for some reason, cant seem to find is some site or book or anything that can give me some rules for the english parts of speech. In specific, I need to know what parts of speech are allowed to follow other parts of speech and maybe what kind of exceptions i need to look out for. Ive found litterally thousands of sites giving me a description of what the parts of speech are, but no real information on valid word order or any kind of rules to that affect. I suppose what I should ask is, do rules for what I am looking for even exist? Or can any part of speech follow another? There has got to be some list of rules somewhere that govern why "John jumped the fence" is valid gramatically and why " Jumped fence john the" isnt. I never really had formal training in grammar, what I learned I learned just from listening to other people talk. And those grammar sites just dont make much sence. Does what I am asking make any sence at all? Or am I off my rocker?

Thanks,
Terra
  
ranchhand  #108611  Tue, 14 Jun 05 08:47 AM
Much much too big a project for someone who has had no formal training in grammar, Terra. This has already been done by others more knowlegeable in language.

Try, "Parse a Sentence" at

[link]
  
Not Ranked
Joined on Sun, May 15 2005
Junior Member (81)
MrPedantic  #108706  Tue, 14 Jun 05 01:01 PM
If you don't mind my asking, Terra, which (programming) language do you intend to use?

MrP
  
Top 10 Contributor
Joined on Tue, Oct 12 2004
Veteran Member (12,168)
Proficient SpeakerSystemAdministrator
...opella forensis / adducit febris...
Guest  #108873  Tue, 14 Jun 05 10:28 PM
I havent really decided yet actually. I know it would require a bit of crunch power, so I would probably end up doing it in C++. But I know several different programming languages.
  
MrPedantic  #108897  Wed, 15 Jun 05 12:04 AM
Well, the very best of luck with it. You may be able to pick up a wordlist already tagged for parts of speech somewhere.

MrP
  
CalifJim  #108976  Wed, 15 Jun 05 07:11 AM
I'm sorry to say it, but you seem to be in over your head on this! Knowing parts of speech isn't going to help because the same word can be many different parts of speech depending on context. If I had a Ph.D. in linguistics and and Ph.D. in computer science, I would still approach this project with trepidation. It's just too complex a problem to tackle without being an expert in many related areas. I think, though, that you should read as much as possible on the subject, both linguistics and computer science, and you may get some good ideas about how to go about it for a simpler subset of the language, just to get your feet wet. There's an old book called "Language as a Cognitive Process -- Syntax" by Terry Winograd which goes into the problems of writing software that analyzes sentences in English. You might browse through that, or something like it, to get started.

And no, you're not off your rocker! Good luck!

Smile [:)]
  
Top 10 Contributor
Joined on Mon, Aug 2 2004
California
Veteran Member (17,792)
ModeratorProficient Speaker
"There are no facts, only interpretations" - Nietzsche
Klavier  #110040  Fri, 17 Jun 05 05:44 PM
Maybe you should investigate in which point the order of the words in a sentence turns to an invalid sentence. I wonder why you are able to understand Yoda, for example, are his sentences in the right order? Maybe not in the perfect order, but even so, you can understand what he says.
  
Top 200 Contributor
Joined on Thu, Sep 23 2004
Chile
Full Member (362)
"If I have seen further, it is by standing upon the shoulders of giants" Isaac Newton
Roro  #110064  Fri, 17 Jun 05 06:59 PM
Hello terra,
I've just heard a presentation today, thank goodness, which concerns your quetion in a way, that is, programing language for representing syntax & semantics used in computational treatment of natural language.
All I can do is to refer you the following literature (which I haven't read) :

Copestake, Ann, Flickinger, Dan, Pollard, aCarl, & Sag, Ivan A. (2003). Minimal recursion semantics: an introduction. unpublished draft under review, available at :
[link]

(with my gratitude for professor G.T.)
  
Top 150 Contributor
Joined on Mon, Apr 11 2005
Regular Member (581)
AddThis Feed Button RSS Feed: ESL General English Grammar Questions
© 2008 MediaCET Ltd.
Terms and Conditions & Terms of Service