{'fraction_non_alphanumeric': 0.016331658291457288, 'fraction_numerical': 0.0, 'mean_word_length': 5.037878787878788, '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}}
Visual languages for sketching documents

We present a visual approach to layout documents as hand-drawn compositions of simple geometric shapes. This approach is based on a grammatical method to support document design through sketch recognition which explicitly addresses visual ambiguity. We use fuzzy relational adjacency grammars to provide a natural handling of fuzzy logic and spatial relation syntax in a single unified formalism. Fuzzy relations enable us to replace spatial constraints such as "a is above b" or "a is parallel to c" by quantities that express a degree of uncertainty. Their use allows us to associate a "measure of goodness" to all data and to intermediate and final results. We developed a prototype application that supports document layout sketching in a simple way.