I am currently working on a database with words from the english dictionary (selling original usernames) . My objective is to be able to display the definition of the usernames added to the database. Right now I'm working on proof of concept before applying the words from my database , but I cannot figure out how to format the preg match statements to get whether the word is a verb or noun etc, and the definition.
My code so far:
$content = file_get_contents("http://www.dictionary.com/browse/abut");
preg_match(?);
preg_match(?);
$class = $classmatch[];
$def = $defmatch[];
echo " $class <br> $def";