Computational Register Analysis and Synthesis