@DictScraper._needs_elements<EOL><INDENT>def pos(self, element = None):<DEDENT>
tags = []<EOL>if element:<EOL><INDENT>if element.startswith(('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')) and not re.search('<STR_LIT>', element.split('<STR_LIT:\r\n>')[<NUM_LIT:0>], re.U):<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT>if re.search('<STR_LIT>', element, re.U):<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT>if re.search('<STR_LIT>', element, re.U):<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT>return tags<EOL><DEDENT>else:<EOL><INDENT>for element in self.elements:<EOL><INDENT>if self.word in unicode(element):<EOL><INDENT>tag = self.pos(element)<EOL>if tag:<EOL><INDENT>return tag<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Tries to decide about the part of speech.