FIELD

This application relates generally to intelligent automated assistants and, more specifically, to modifying or sanitizing word predictions.

BACKGROUND

Intelligent automated assistants, or digital assistants, can provide a beneficial interface between human users and electronic devices. Digital assistants may be utilized in order to provide various predictions, such as word or phrase predictions. These predictions may be presented to a user while a user is typing or speaking a word sequence, for example, in an instant messaging conversation, e-mail communication, and the like. However, conventional systems for word predictions are inadequate for a variety of reasons. In particular, language data used to train such systems may include a wide range of data from social media, pop culture websites, or other mediums having unconventional or otherwise modern language usage. Conventional systems may not be well equipped to handle word predictions based on new terminology, or new usage of existing terminology. Furthermore, as society evolves, certain language usage that was once considered uncontroversial may no longer be acceptable or a tolerable by society in general. Such problems are magnified when multiple languages, cultures, and other societal factors are considered. Thus, an improved system for word prediction, and in particular modifying word predictions, is desired.

SUMMARY

Systems and processes for modifying word predictions are provided. In one example, a user input is received including one or more words. A prediction of a word sequence corresponding to one or more words is obtained, and context information associated with the word sequence is obtained. In accordance with a determination, based on the context information, that the prediction of the word sequence correspond to a predetermined semantic reference, the prediction of the word sequence is modified, and an output is provided corresponding to the modified prediction of the word sequence. In accordance with a determination, based on the context information, that the prediction of the word sequence does not correspond to a predetermined semantic reference, an output is provided corresponding to the prediction of the word sequence.

