I am a begginner programmer and I need help creating a project that will accept a string, parse it, and say whether it is a sentence as defined by a given set of rules. The problem I am having is given a string how can I tell what part of speech a word is. Here is an example:
input string:
fido chased felix.
How can I find out that: fido is a noun, chased is a verb, and felix is a noun?
Is there some sort of built in dictionary that can determine this for me? any help would much apperciated. Thanks
String Parsing Program Help
Started by peage1475, Oct 28 2008 01:56 PM
7 replies to this topic
#1
Posted 28 October 2008 - 01:56 PM
|
|
|
#2
Posted 29 October 2008 - 09:18 AM
Let me know if you find help for this. I'm in need too.
#3
Posted 29 October 2008 - 10:17 AM
I do not know of any built-in dictionaries. You could try an online thingy - find a website that allows you to search for things such as example.com/dictionary.php?word=Felix and then append the name of the word onto that. However: the word Felix will not be in the dictionary! Bear this in mind.
#4
Posted 29 October 2008 - 11:34 AM
You could get the OpenOffice Thesaurus (which lists parts of speech) and use that info to help.
#6
Posted 30 October 2008 - 04:26 PM
Thanks for the hlep. I guess what I can do is try to use the OpenOffice Thesaurus and also define some other words I will encounter myself and use both to find the correct part of speach. Thanks again.
#7
Posted 30 October 2008 - 06:09 PM
Some words won't be, no.


Sign In
Create Account


Back to top









