/** * returns the part of speech for specified word * * EG: * [base_path]/frontend_dev.php/words/pos?word=computer * * @param sfWebRequest $request */ public function executePos(sfWebRequest $request) { // NOTE -- changed this from `getGetParameter` to `getParameter.` // The former wasn't working for some reason, $headword was coming up empty // andyinabox - 2010-05-20 $headword = $request->getParameter("word"); $this->pos = Wordnik::getPartOfSpeech($headword); }