add replace phrase to DefineCompletion API