A general method for the development of constrained codes | Synapse