Jump to content

finding the nounds, adjectives!!


pouncer

Recommended Posts

Doing something with language with a computer is very very difficult, because languages contain large amounts of "flaws". So many exceptions. Although nouns are totally random. However, you can inspect a complete sentence, defining what is what (verb, subject, etc), than you can maybe see what is a noun and what not.

 

OR you can put every noun/adjective in an array and use regular expressions to check out if that sentence contains that specific noun...

 

Have luck lol, not to discourage you, but its a helluva work :P

 

Full-Demon

It's beyond 'helluva'. Languages simple do not lend themselves to that sort of analysis by rules, especially where nouns can be used as adjectives (Georgia peach, farewell letter are two wiki examples).

 

http://en.wikipedia.org/wiki/Adjective will give you more information about adjectives than you'll need in a lifetime.

ah, problem then!

 

thing is, my website is about creating collections. say i create a collection on 'my old stamps'

 

and tim creates a collection on 'my old houses'

 

say i then search for 'similar' collections, it shud bring up the 'my old houses' collection with the word 'old' in bold.

 

so how else could i do this?

User regular expressions to search for the word old, stamps or houses. But I guess it shouldnt search for 'my', isnt it?

 

Google for regular expressions, you need to make a function that will search through a database to match a certain word.

 

Full-Demon

Making a script/program that can place words into different classes would be very complex, especially, as obsidian said, as some words can be a different word class depending on how you use them. In order of your script to understand the sentence, and thereby distinguish the ten word classes (interjections, numerals, conjunctions, prepositions, adverbs, verbs, pronouns, articles, nouns, adjectives), it would need some artificial intelligence and it would need to know how word morphology works (perhaps knowledge of its syntax would help as well?). There are people who work with nothing else than morphology. Languages are rather complex.

User regular expressions to search for the word old, stamps or houses. But I guess it shouldnt search for 'my', isnt it?

 

Google for regular expressions, you need to make a function that will search through a database to match a certain word.

 

Full-Demon

 

Easiest way, IMO.

 

Full-Demon

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.