{'fraction_non_alphanumeric': 0.0112, 'fraction_numerical': 0.0, 'mean_word_length': 4.90566037735849, '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}}
Correctly typing objects through subtyping and type inference

In this paper we present a type system with strong typing and static type checking that is not yet well supported in most existing object-oriented database systems. Using a partial ordering defined on type structures and on methods associated to types, we define a subtyping rule for correctly structuring the inheritance hierarchy of the types. Based on the subtyping, a number of type inference rules are defined, They can be used by the type system to statically determine the types of the query results and wether a given application program is type correct.