pattern adaptive writing