# Custom (physics) dictionary for mathematica (used for word-processing, spell checking)

Is there a dictonary available that contains physics slang like spinor, vacua, gauge etc.??

How would one integrate such a file (or a simple text file containing the words) into the front-end without too much of a hassle?

-
How is this Mathematica-related? (the -1 is not mine, FWIW) –  Mr.Wizard Oct 16 '12 at 13:35
Have a look at DictionaryLookup. –  b.gatessucks Oct 16 '12 at 13:42
@b.gatessucks, surprisingly, even OP's third example is not known to DictionaryLookup[]... I had thought it wasn't a very specialized word that it had to be there, but it isn't. –  Guess who it is. Oct 16 '12 at 13:49
@NoEscape -- no snark from me, but I still don't see how this is Mathematica-specific. There are many word lists on the web, e.g. YAWL or ENABLE2K. Perhaps you would do better to ask how a new dictionary can be integrated into Mathematica? –  Mr.Wizard Oct 16 '12 at 13:55
@NoEscape I'd edit the question to highlight that you're using MMA for word-processing, and need a custom dictionary. –  Eli Lansey Oct 16 '12 at 14:22

One way you could do this is to add the words to your init.m file.

SpellingDictionaries->{"CorrectWords"->
{"gauge", "spinor", "muon", "tauon"}},


which has the same effect as adding them using the 'Learn' button on the Spelling panel, I suspect.

-

The closest i can think of is some combination of

In[44]:= WordData["spinor"] // InputForm
WordData["gauge"] // InputForm

Out[45]//InputForm=
{{"gauge", "Noun", "MeasuringInstrument"}, {"gauge", "Noun", "Diameter"},
{"gauge", "Noun", "Thickness"}, {"gauge", "Noun", "Distance"},
{"gauge", "Noun", "Standard"}, {"gauge", "Verb", "Flux"},
{"gauge", "Verb", "Standardize"}, {"gauge", "Verb", "Measure"},
{"gauge", "Verb", "Figure"}, {"gauge", "Verb", "Determine"}, {"gauge", "Verb", "Rub"}}

In[46]:= DictionaryLookup["spinor"]
DictionaryLookup["spin"]

Out[46]= {}

Out[47]= {"spin"}

In[50]:= WolframAlpha["spinor", {{"Input", 1}, "Plaintext"}] // InputForm

Out[50]//InputForm=
"spinor"


If all of these don't return {}, then your word is hopefully confirmed correct spelling.

-