@DictScraper._needs_elements<EOL><INDENT>def pos(self, element = None):<DEDENT>
tags = []<EOL>if element:<EOL><INDENT>if re.search('<STR_LIT>', element, re.U):<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in element:<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in element and re.search('<STR_LIT>', element, re.U):<EOL><INDENT>tags.append('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for element in self.elements:<EOL><INDENT>if element.startswith(self.word):<EOL><INDENT>tags += self.pos(element)<EOL><DEDENT><DEDENT><DEDENT>return list(set(tags))<EOL>
Tries to decide about the part of speech.