Using Topes to Validate and Reformat Data in End-User Programming Tools Chris Scaffidi Allen Cypher Sebastian Elbaum Andhy Koesnandar James Lin Brad Myers Mary Shaw 10.1184/R1/6626429.v1 https://kilthub.cmu.edu/articles/journal_contribution/Using_Topes_to_Validate_and_Reformat_Data_in_End-User_Programming_Tools/6626429 <p>End-user programming tools offer no data types except “string ” for many categories of data, such as person names and street addresses. Consequently, these tools cannot automatically validate or reformat these data. To address this problem, we have developed a userextensible model for string-like data. Each “tope ” in this model is a user-defined abstraction that guides the interpretation of strings as a particular kind of data. Specifically, each tope implementation contains software functions for recognizing and reformatting instances of that tope’s kind of data. This makes it possible at runtime to distinguish between invalid data, valid data, and questionable data that could be valid or invalid. Once identified, questionable and/or invalid data can be double-checked and possibly corrected, thereby increasing the overall reliability of the data. Valid data can be automatically reformatted to any of the formats appropriate for that kind of data. To show the general applicability of topes, we describe new features that topes have enabled us to provide in four tools.</p> 2008-05-01 00:00:00 Reliability Languages