LanguageTool Community

<< return to list of rules

Rule "Change two hyphens to em dash"

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

Description: Change two hyphens to em dash
Message: Consider using an em dash (—) instead of '--'.
Category: Punctuation (ID: PUNCTUATION)
Link: https://languagetool.org/insights/post/dashes/
Tags: [picky]
Incorrect sentences
that this rule can detect:
  • This is great -- is it not?
    Correction suggestion:
  • Charles H. Long writes, "They believed in the beings referred to in the myth -- gods, animals, plants.
    Correction suggestion:
  • McDONALD, James E.: "The Coriolis Effect," bullet: Everything that moves over the surface of the Earth -- water, air, animals, machines and projectiles."
    Correction suggestion:
  • I believe in you; It will all work out -- trust me.
    Correction suggestion:
Correct sentences
for comparison:
  • ------ ----------- ----------- --------- --------- ----------------
  • Spoiler Alert (!) -- [Any Details Provided are Subject to Change]
  • D, [2017-05-16T11:15:44.784823 #14925] DEBUG -- : X-Request-Start header value was t=1494900944.773 at 1494900944.7847745
  • LoadError (cannot load such file -- new_relic/agent/tracer)
  • Download: Global -- Bear -- New Note v1.0.kmmacros
  • `Switchr -- switchTypes = [Switches, Dimmers, Color Lights, Color Temperature Lights].`
  • -- "c2s"; -- Handle client connections
  • # Setup JAVA_HOME -- useful for docker commandline
  • [DEBUG] -- end configuration
  • ### Lutron P-PKG1P-WH-R White Lutron P-PKG1P-WH-R Cas - - Amazon.com
  • kubectl exec -ti busybox -- nslookup kubernetes.default
  • draw.io -- Window Properties Report -- 01 Windows Listed
  • Right Rear Quadrant -- maybe Right rear quadrant -- maybe Right Quadrant
  • Game semantics -- Ganto's Ax -- Geometry of interaction -- Gilles-Gaston Granger -- Gongsun Long -- Grammaticality -- Greedy reductionism -- Grundlagen der Mathematik --
  • Google Chrome Beta -- v70.0.3538.22 (Official Build) beta (64-bit) I only have 1 screen, so I can't be sure how it will work with 6.
  • 09:22 -- Mode #diaspora-de [-r] by DenSchub
  • Route 895 -- Anagance - Portage Vale - Goshen - Elgin - Little River - Coverdale
  • end tell -- dbGrp
  • DOCKER-ISOLATION-STAGE-1 all -- anywhere
  • 0.5 -- 1.5 0.1
  • 10.02 -- 14.07 10.01
  • 3500 -- 9000 100
  • Composed Net. -- 36.5 K 4.05 4
  • costs -- 11 and 22
Pattern: Show XML · Show in Rule Editor
Check the following text against just this rule:

ID: TWO_HYPHENS [1]
Version: 6.5-SNAPSHOT (2024-03-28 22:33:07 +0100)