LanguageTool Community

<< return to list of rules

Rule "A word contains an underscore"

This is one of many errors that LanguageTool can detect. Visit the LanguageTool homepage to use it online or download it for free.

Description: A word contains an underscore
Message: An underscore (_) within a word is atypical (except in technical contexts, nicknames, etc.). Make sure that the word '\1\2\3' is correct.
Category: Possible Typo (ID: TYPOS)
Tags: [picky]
Incorrect sentences
that this rule can detect:
  • This test_case is not satisfactory.
    Correction suggestion: test case, test-case
  • This test is for_semi-colons.
    Correction suggestion: for semi-colons, for-semi-colons
Correct sentences
for comparison:
  • This test-case is satisfactory.
  • Write your name here: ______________________
  • Language Tests______________________ 37
  • Some More Language Tests _ Appendix B
  • Do only _this_ test.
  • Check out the attached file country_codes.csv before…
  • But these_ unlike other tests...
  • Refer to _TESTS' on page 33.
  • Status "payment_failed"
  • my_variable = x
  • Does it make sense to add `suppress_misspelled`?
  • Public_html is a directory on computers running Apache web servers that stores all HTML files.
Pattern: Show XML · Show in Rule Editor
Check the following text against just this rule:

ID: WORD_CONTAINS_UNDERSCORE [1]
Version: 6.0-SNAPSHOT (2022-09-30 20:33:02 +0000)