{'fraction_non_alphanumeric': 0.01873767258382643, 'fraction_numerical': 0.0, 'mean_word_length': 5.424050632911392, '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}}
Generating Customizable Natural Language Descriptions

In the Natural Language Generation field, the task of Reference Expression Generation (REG) consists of selecting the semantic content that should compose the linguistic description of a discourse object, as in `the man in black' or `the boy in the centre'. REG algorithms tend to use predefined parameters to model qualitative and quantitative aspects of the description to be generated, and are often difficult to adapt to new domains or applications. In addition, obtaining linguistic examples in all possible reference situations is also often impracticable, which limits the use of machine learning approaches in this task. Based on these observations, this work proposes an extension of a standard REG algorithm, in which certain aspects of a reference strategy are customized without necessarily resorting to training data. The proposal was tested by making use of three REG domains, and its results compared favourably against a standard REG approach.