Automatically processing amendments to legislation