@DictScraper._needs_elements<EOL><INDENT>def plural(self):<DEDENT>
element = self._first('<STR_LIT>')<EOL>if element:<EOL><INDENT>if '<STR_LIT>' in element:<EOL><INDENT>return ['<STR_LIT>']<EOL><DEDENT>if re.search('<STR_LIT>', element, re.U):<EOL><INDENT>return re.findall('<STR_LIT>', element, re.U)[<NUM_LIT:0>].split('<STR_LIT:/>')<EOL><DEDENT>if re.search('<STR_LIT>', element, re.U):<EOL><INDENT>suffix = re.findall('<STR_LIT>', element, re.U)[<NUM_LIT:0>]<EOL>return [self.word + suffix]<EOL><DEDENT>if element.endswith('<STR_LIT>'):<EOL><INDENT>return [self.word]<EOL><DEDENT><DEDENT>return [None]<EOL>
Tries to scrape the plural version from pons.eu.