What Match Surrounding Language does and when to use it

Match Surrounding Language is a Word setting that makes your spell-checker and grammar tools match the language of the text around your cursor, rather than sticking to one fixed language for the whole document. When you turn it on, Word watches what language you are typing in and switches its dictionary and grammar rules automatically.

This matters most if you write in multiple languages in the same document — say, English paragraphs with French quotations, or Spanish dialogue mixed into an English report. Without it, Word flags every word in your second language as a spelling error. With it on, Word recognizes the shift and checks each section against the right dictionary.

If your document is entirely in one language, this setting makes no practical difference. If you switch languages often, it saves you from manually telling Word to stop correcting every foreign word.

Key Takeaways

  • Match Surrounding Language tells Word to detect what language you are typing and check spelling and grammar against that language's rules, not a single fixed language.
  • You turn it on through File > Options > Proofing, then check the box labeled "Use Contextual Spelling" or look for language-matching options in the same menu.
  • The exact menu location and checkbox name vary slightly between Word versions — 2019, 2021, and Microsoft 365 all place it slightly differently.
  • Once enabled, Word will still flag words it does not recognize, but it will check them against the language of the surrounding text instead of your document's default language.

Turning it on in Microsoft Word 2019 and 2021

Open Word and go to File in the top left. Click Options at the bottom of the menu. In the Options window, select Proofing from the left sidebar.

In the Proofing section, look for a checkbox labeled Use Contextual Spelling or Match Surrounding Language — the exact wording depends on your version. Check the box if it is not already checked. Then click OK at the bottom right to save the change.

The setting applies to all new documents you create after this point. Existing documents may need to be closed and reopened for the change to take effect.

Turning it on in Microsoft 365

The process is nearly identical in Microsoft 365, but the menu path is slightly different. Click File, then Options, then Proofing in the left sidebar, just as above.

In Microsoft 365, the relevant checkbox is usually labeled Use Contextual Spelling. Check it and click OK. If you do not see that exact label, look for any checkbox mentioning "contextual" or "surrounding language" in the Proofing section — Microsoft has renamed this setting more than once across versions.

What happens after you enable it

Once the setting is on, Word stops using a single language dictionary for the entire document. Instead, it reads the language of the text immediately around your cursor and applies that language's spelling and grammar rules to the word you are typing.

You still need to tell Word what language a section is written in if it cannot detect it automatically. You can do this by selecting the text, going to Review > Language > Set Proofing Language, and choosing the correct language from the list. After that, Word will check that section against the right dictionary.

The setting does not change how Word displays text or how it exports documents — it only affects the spell-checker and grammar tools while you are editing.

If the setting does not appear in your version

Older versions of Word (2016 and earlier) may not have a "Match Surrounding Language" option at all. If you cannot find it in File > Options > Proofing, your version likely does not support automatic language detection.

As a workaround, you can manually set the language for each section of text. Select the foreign-language text, go to Review > Language > Set Proofing Language, and pick the correct language. Word will then check only that selection against the right dictionary. This is slower than automatic detection, but it prevents false spelling errors.

Common issues and fixes

If you turn on Match Surrounding Language and Word still flags words as errors, the problem is usually that Word does not recognize the language of that section. Select the flagged text and manually set its language through Review > Language > Set Proofing Language. Word cannot detect every language automatically, especially if the text is short or mixed with another language.

If the setting does not seem to work at all, make sure you have closed and reopened your document after enabling it. Some versions of Word do not apply the change to documents that were already open. You can also try restarting Word entirely.

If Word is still checking against the wrong language even after you set it manually, check that your document's default language (File > Options > Language) is not overriding your selection. The default language sometimes takes priority depending on your Word version.

Frequently Asked Questions

Does Match Surrounding Language work with all languages?

Word supports most major languages, but not all. Common languages like Spanish, French, German, Mandarin, and Arabic work well. Less common languages may not have a full dictionary in Word. If your language is not available, Word will not be able to check it, even with the setting on.

Will this setting affect how my document prints or looks?

No. Match Surrounding Language only changes how Word checks spelling and grammar while you edit. It does not change fonts, spacing, formatting, or anything else visible in the final document. It is purely a behind-the-scenes editing tool.

Can I turn this on for just one document instead of all documents?

The setting in File > Options applies to all documents you create going forward. If you want to use it for only one document, you can turn it on globally, then turn it off again after you finish that document. There is no per-document toggle.

What is the difference between Match Surrounding Language and Set Proofing Language?

Set Proofing Language lets you manually tell Word what language a section is written in. Match Surrounding Language makes Word detect the language automatically. You can use both together — turn on automatic detection, and manually set the language for sections Word cannot figure out on its own.

If I turn this on, will Word stop correcting my English?

No. If you are typing in English, Word will check your English spelling and grammar normally. The setting only changes which language dictionary Word uses based on what you are typing. English text is still checked against English rules.