{'fraction_non_alphanumeric': 0.024774774774774775, 'fraction_numerical': 0.0, 'mean_word_length': 4.855263157894737, '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}}
Implementing OCL in Swift

Swift is the new programming language for Apple platforms such as MacOS and iOS, and it is the basis of the SwiftUI mobile app framework. The language incorporates first-class functions, open classes, and other advanced features. In this paper we describe a tool for translating UML and OCL specifications into fully-functional code in Swift. Translation of OCL extensions (map and function types) are also described.