Synforce
Synforce is a Javascript library that provides real-time syntax enforcement on data entered into text input boxes in HTML forms. Synforce is Open Source software, licensed under the GNU Lesser General Public License (the LGPL). The input text box is commonly used for gathering unstructured data, but suffers from the lack of any standard way to ensure that a user enters only data of an appropriate type: for example, although you may provide a text box to gather a customer's name, if the customer is inattentive (or even malicious) he may enter his telephone number instead. Synforce goes some way to ensuring that this cannot occur, by checking the syntax of the data entered as it is typed, and discarding characters that would violate the syntax that you wish to enforce.