def found_linked_mapped_articles(self, tokens, arg):
     source_wp_article = arg
     destination_wp_article = tokens
     source_ta_article = ltw.tag_value(source_wp_article, "mapped_from")
     destination_ta_article = ltw.tag_value(destination_wp_article, "mapped_from")
     link_tag = ltw.tag_range(source_ta_article, "linked_to", destination_ta_article)
     return []
 def found_wp_title_in_ta_heading(self, tokens, arg):
     wp_article_body = arg
     wp_tag = ltw.tag_range(wp_article_body, "mapped_from", tokens)
     ta_tag = ltw.tag_range(tokens, "mapped_to", wp_article_body)
     return []  # NOTE: We don't have to return the tags; they're automatically set after the method returns.
 def found_title(self, tokens, arg):
     print "Found title: " + str(tokens)
     ltw.tag_range(tokens, "linked_to", tokens) # should ideally make this link to something random
     return []