def tatoeba(language, word, minlength = <NUM_LIT:10>, maxlength = <NUM_LIT:100>):
word, sentences = unicode(word), []<EOL>page = requests.get('<STR_LIT>' % (word, lltk.locale.iso639_1to3(language)))<EOL>tree = html.fromstring(page.text)<EOL>for sentence in tree.xpath('<STR_LIT>'):<EOL><INDENT>sentence = sentence.strip(u'<STR_LIT>').replace(u'<STR_LIT>', u'<STR_LIT>').replace('<STR_LIT>', u'<STR_LIT>')<EOL>if word in sentence and len(sentence) < maxlength and len(sentence) > minlength:<EOL><INDENT>sentences.append(sentence)<EOL><DEDENT><DEDENT>return sentences<EOL>
Returns a list of suitable textsamples for a given word using Tatoeba.org.