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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.