Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The autocomplete ("Complete Selection") feature Ctrl-K (or F2 on Windows) works fine for functions and code input.

Is there a way to enhance it for text input?

Today’s standard (see e.g. OpenOffice etc.) is to autocomplete based on words already occuring in the text.

For text Mathematica will just display words from a (very simple) dictionary. If I type e.g. "Grav" it will show "Grave", "Gravy" etc. It does not even seem to know "Gravity" or "Gravitation" (despite these being common words and despite occurences in my text)

share|improve this question
have you seen this: and the reference therein? I think it is the closest if you want full control over the auto-completion mechanism. That stuff is undocumented, unsupported, and really low level. And I can't see whether it would be possible to really do what you want but suspect it might be... – Albert Retey Oct 30 '12 at 17:03
I have just played around with that and now think that the autocompletion for text unlike that for input doesn't even go through the kernel, which probably leaves you with what Verbeia has suggested... – Albert Retey Oct 31 '12 at 11:22

Actually, Mathematica does know these words, but requires a bit of prodding to suggest them.

Step 1 Step 2 Step 3

You can add additional word suggestions via the Options Inspector, but I don't think there is a general way to customize the ordering of the words that appear in the suggestions popup menu.

enter image description here

share|improve this answer
Thx for the hint. So we would rather have to take away words than add new ones. The sorting is really strange, as you show in your screenshot. – NoEscape Oct 16 '12 at 13:01
Adding suggestions (which then appear first in the list) works sometimes, but only after fiddling around with other options (Language Category), restarting? I cannot reproduce it. Anyway it is not an option to add a myriad of suggestions by hand. – NoEscape Oct 16 '12 at 13:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.