{'fraction_non_alphanumeric': 0.014598540145985401, 'fraction_numerical': 0.0, 'mean_word_length': 4.330097087378641, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
The Value of Sponsored Ads for XML Documents

We study how sponsored ads which are classically inserted in Web pages could also be inserted in XML documents such as Ebooks. Advertisers set prices for words and DTDs, and a Vickrey mechanism would select an ad for some price. The approximate distance between a document and any DTD, which is easy to compute, allows to associate a value to a new document in such a market, as a combination of the price and the distance. We describe a simple auction for one ad and its generalization to several ads.