diff --git a/sanityCheck b/sanityCheck
index ff10c55772dfb7e3f0a5935a59bb49c30c88033c..3f0aacb6eff7388d982404dbddc826b98e6c1bb5 100755
--- a/sanityCheck
+++ b/sanityCheck
@@ -69,6 +69,8 @@ $GREP -e "activeSlave[.]" --and -e "slaves\[..\?\][.]" --and --not -e '[.]ID' --
 $GREP "<<set[^{>=]*==" -- 'src/*' | myprint "DoubleEqualsInSet"
 # Check for, e.g   <<if slaves[foo]>>
 $GREP "<<\([^>]\|[^>]>[^>]\)*[^$]slaves\[" -- 'src/*' | myprint "MissingDollar"
+# Check for duplicate words, e.g. with with
+$GREP -e  " \(\b[a-zA-Z][a-zA-Z]\+\) \1\b " --and --not -e "her her" --and --not -e "you you" --and --not -e "that that" -- 'src/*' | myprint "Duplicate words"
 
 # Check that we do not have any variables that we use only once.   e.g.     $onlyUsedOnce
 (