April 16th, 2013, 06:44 PM
Check the Last part
Hello everyone, I am trying to make a program that identifies words. Ex= The program asks
The user writes it, for example running, then the program reads for ex if words end==-ing then print ("You wrote a verb") Is there anyway to do this? or Would I have to write a small database, if so, how?
word=input ("Write a Word")
April 17th, 2013, 12:49 AM
I'm a newb but there is a simple solution to this:
word = raw_input('Enter Word')
print 'Whatever you want it to print'
April 17th, 2013, 02:28 AM
Hehe, just kidding, but it makes a good point! Truely writing an algorithm to decide what the type of word is will be tricky, and a matter of priority. For example... Any word with a capital letter that's not at the beginning of a sentence should (usually) be a noun and not a verb
This is a fun project lol I am almost inspired to play with it.