Some of the English-Corpora provide the function you want. The English-Corpora interface, and the concepts involved, may present you with a steep learning curve, but the tools there are powerful.
For example, "words with which" a given word is "commonly used" are called "Collocates". If you go to the English-Corpora page (linked in the first paragraph of this answer) and click on the "News on the Web (NOW)" link, then select "Collocates", you can put "mandatory" (no quotes) into the entry box left of "Word/phrase". Put nothing or an asterisk in the entry box next to "Collocates", then select the number of words of interest left or right of "mandatory" in the scale:
In the image, I selected 2 both left and right of "mandatory". Next, clicking the "Find collocates" button below the scale produces this graph (cropped at collocate 19), sorted by default by frequency from highest to lowest:
(Clicking the image above will display a larger version.)
Many parameters can be tweaked; for example, if I'm only interested in words one word to the left of "mandatory rules", I can set up the interface like so:
That setup produces the following graph (cropped at collocate 9):
All features and the methodology are documented at the English-Corpora site, although it may take you a while to find what you're looking for.
Note that the asterisk in the entry box next to "Collocates" can be replaced with a given collocate of interest.
If you're interested in "the types of words" with which a given word is commonly used, rather than simply the words with which a given word is commonly used, you can select a part-of-speech from the dropdown list produced by clicking the "[POS]" next to "Collocates".