1. A non-transitory computer readable medium storing instructions, the instructions comprising: one or more instructions that, when executed, cause a processor to: receive an input, the input comprising a plurality of input elements; parse the input to identify: a first element from among the plurality of input elements, the first element represented according to a formalism type that identifies having a syntax for organizing elements of the formalism type, and a second element from among the plurality of input elements, the second element represented according to the formalism type; access a library comprising entries for different formalism types, the formalism type included in the different formalism types; determine a likelihood that the first element and the second element coexist in a selected formalism type from among the different types of formalisms in the library, and select, based on the determining, the selected formalism type that is consistent with a coexistence of the first element and the second element; wherein the selected formalism type is one of the following: an equation, a state diagram, a plot, a chart, a table, a Unified Modeling Language (UML) diagram, a chemical formula, a block diagram model, a type of diagram, a multi-body modeling formalism, a computer-aided design formalism, a physical modeling formalism or source code, generate an output, the output: comprising the first element and the second element, and at least partly represented in a format corresponding to the selected formalism type; and wherein if the selected formalism type is an equation, the format is a solution to the equation or a source code function representing the equation; wherein if the selected formalism type is a state diagram, the format is a state chart model representing the state diagram; wherein if the selected formalism type is a plot, the format is a source code command that when executed generates the plot or a table of data represented in the plot; wherein if the selected formalism type is a table, the format is a plot or a chart representing the table; wherein if the selected formalism type is a chart, the format is a table of data represented in the chart; wherein if the selected formalism type is a UML diagram, the format is a source code class representing the UML diagram; wherein if the selected formalism type is a chemical formula, the format is a name of a chemical represented by the chemical formula; wherein if the selected formalism type is a block diagram model, the format is a source code representation of the block diagram model; and wherein if the selected formalism type represents source code, the format is a block diagram model.