News for hackers. Stuff that matters.
Re:Three shell scripts to improve your writing by gmac on Saturday December 14, 2024 @04:53AM (#42415884)
Can confirm the value of checking for repeated words such as ‘the the’. This is the final example I give my Econ PhD students in a session on RegExps: https://users.sussex.ac.uk/~gm268/iphd/regexps/regexps.pdf
Re:Three shell scripts to improve your writing by ninalanyon on Saturday December 14, 2024 @06:58AM (#42416503)
Just so long as it doesn't blindly modify "that that".
Re:Three shell scripts to improve your writing by Timwi on Saturday December 14, 2024 @07:42AM (#42416735)
I once wrote a sentence with a double “in” in it — it was something like “let's see what state this is in in two weeks’ time” or similar — and at least two people commented thinking that it was wrong and needed an “in” removed...
Re:Three shell scripts to improve your writing by gmac on Saturday December 14, 2024 @07:22AM (#42416607)
Right. You can just search for /\b(\w+) \1\b/ and see what comes up. There are usually false positives of one kind or another.
Re:Three shell scripts to improve your writing by skalarproduktr on Saturday December 14, 2024 @04:58AM (#42415912)
This is a great summary how to use regexps, complete with some very nice examples. Thank you!