{'fraction_non_alphanumeric': 0.014255167498218105, 'fraction_numerical': 0.0042765502494654314, 'mean_word_length': 5.24, '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}}
Determining Semantic Similarity of Behaviour Using Natural Semantic Metalanguage to Match User Objectives to Available Web Services

Natural Semantic Metalanguage specifies a set of semantic primitives identified by linguists since the 1970s as being present in all analysed languages and not capable of further reduction. In this article, the 63 semantic primitives are used to define the semantics of user objectives and web services in the form of semantic explications, which are then compared to determine whether the web services are likely to be helpful in meeting the user objective. The comparison of the user objectives and web services is a two stage process. Firstly, the content is compared by classifying the semantic primitives from the candidate web service and user objective on the basis of whether the primitives are common or similar. On the basis of these classifications, the percentage match and semantic relationship (subset, superset, overlaps, disjoint, identical) are determined. Secondly, the order of the semantic primitives is compared and the edit distance determined as a measure of semantic similarity. The method is tested using two examples: a comparison of spatial relations and a comparison of a user objective and three geospatial web services. The results show that the method is able to determine which concepts are broadly semantically similar and which are not.