Category Archives: Grammar/Punctuation

Finding doubled words using perl

I recently switched to Scrivener for writing my documents. Much more enjoyable interface than Word, with lots of nifty features for writers. One big issue: I’m still getting used to Scrivener’s spellchecker. Microsoft Word finds doubled words right out of the box, but Scrivener does not.

The script below is written in perl, which comes pre-installed on Macs. If you paste it into a text file, make the file executable, and then run it in the same directory with a file called “infile.txt” (a cut/paste from Word to the file will do nicely), it will report your doubled words.

*update* – the script won’t catch things like: “bang bang” because the quotes make it think it’s 2 patterns.  Working on it 🙂

Example input (infile.txt):

This is a line
This is another line
And yet another line
wow I sure do a lot of lines, "Don't I?" he said (in a funny voice)...
Wow it sure is is fune typing all this
I like dogs and cats and stuff.
Big big is funner than small people.
how are are the dodgers doing this year? Nobody knows.
more lines and stuff...
etc. etc.
good things come to those who write scripts in perl and post them on the internet

Example Output:

is is ---->  Wow it sure is is fune typing all this
big big ---->  Big big is funner than small people.
are are ---->  how are are the dodgers doing this year? Nobody knows.
etc. etc. ---->  etc. etc.

And now the script: rep.pl

#!/usr/bin/perl
open(FILE,"infile.txt") or die "Can't open infile.txt: $!";
$section_breaks = "*";  # I have * * * as section breaks. The script sees them as words and should ignore them.
while(<FILE>) {
   chomp();
   $a_line = $_;
   @line = split(/ /, $_);
   $prev = 0;   
   foreach $i (@line) {
      $i = lc($i);
      if ($i eq $prev && $i ne $section_breaks) {
         print "$prev $i ---->  $a_line\n";
      }
      $prev = $i;
   }
}
close(FILE);

10 Comments

Filed under Grammar/Punctuation, Tools for Writers, Writing in general

The show you never knew you needed: Writership Podcast

writership-podcast1400Over on the Sell More Books Show, Jim Kukral announced the launch of a new podcast as part of his new “Author Marketing Institute Podcast Network.” Unlike other author podcasts, this one focuses on craft. Specifically: editing.  Anyone who knows me, or who’s followed the Awesome Indie Project, knows I have an appreciation for good editing. I’m always striving to hone my skills, because the better job I do on my drafts, the easier it will be for a paid editor to help me prepare for publication.

Content

I’ve listened to two shows so far, and both were great. The hosts — Leslie Watts and Alyssa Archer — start the show with a quote about editing from someone famous in publishing, and not necessarily from the trad pubs (the first show quoted Chuck Wendig). After that, they choose a published or unpublished novel someone has submitted and read it on the air for about 10 minutes. Then they tear it to pieces! Haha, just kidding. Actually, they’re incredibly respectful of the work. They say what they like about it, and then suggest improvements from a number of different perspectives: story, pacing, sentence structure, etc.  In my opinion, they do a bang-up job. I really love this stuff and could listen to it all day.

Style

One of the things I love about the show is the personalities of the hosts: calm, focused, friendly, earnest in their mission. Delivery is something I usually don’t think about when it comes to podcasts, but it’s an important consideration. Simon Whistler of the Rocking Self-Publishing Podcast mixes bubbly enthusiasm with a Tony Blair accent, and it’s always fun to hear Jim Kukral and Bryan Cohen riffing off each other so naturally on the Sell More Books Show. It’s no coincidence that I mention these other two shows side-by-side with Writership. They’re all winners.

http://www.writership.org/podcast/

7 Comments

Filed under Grammar/Punctuation, Indie Publishing, Podcasts

Great episode: Kev & Steve’s Indie Publishing Adventure w. Harry Dewulf

I first heard Harry Dewulf on the Rocking Self-Publishing Podcast, episode #12. I thought he was amazing. On the RSP, he mainly talked about how he approaches editing, how writers should go about hiring an editor, etc.  Here he talks to Kev & Steve about the mistakes he found in the early chapters of their self-published book.  It’s sort of funny how he dishes it out — lots of self-deprecating jokes from the hosts over various mistakes they’d made, quite informative and fun. Harry ends the podcast talking about his editing services, the different tiers, etc.  A worthy episode in this up-and-coming indie publishing podcast.

Episode 6:

http://app.stitcher.com/splayer/f/55719/36129280

Harry Dewulf:

Kev & Steve:

 

Leave a comment

Filed under Grammar/Punctuation, Indie Publishing, Podcasts

“Like a junkie returns to his needle”

http://www.pthylton.com/over-used-words-death/

If you dare…

Leave a comment

Filed under Awesome Indies, Grammar/Punctuation, Writing Experience

Woops, forgot to mention…Editing For Indies Webinar

Simon Whistler

Simon Whistler

Simon Whistler is hosting a webinar titled “Editing for Indies”, with Alida Winternheimer as presenter.

Merely signing up gets you:

The “Editing for Indies” guide.
PLUS a special offer for Alida’s editing services!
PLUS live at the webinar we’ll be giving away: 5 advance copies of Audiobooks for Indies and a one-hour consultation with Alida!

Alida Winternheimer

Alida Winternheimer

The webinar is on a Saturday, August 9th, and isn’t too long — about 1.5 hrs.  Seriously, check it out, because whom doesn’t need a little editing now and them?

http://rockingselfpublishing.com/joinwebinar

1 Comment

Filed under Grammar/Punctuation, Indie Publishing, Writing in general

For folks looking for an editor, here’s a great list…

http://unfoldednote.com/find-an-editor-today/

Leave a comment

Filed under Grammar/Punctuation, Writing Experience

Guest Post: Editing — Why Do I Bother?

This is ossum!

Belly-up!

Do you ever ask yourself, “Why are so many traditionally published books woefully under-edited?”

Sci-fi and fantasy author Michael Drakich does, too.

Editing – Why Do I Bother?

author Michael Drakich

Lately, in my recreational reading, I have been finding a greater number of the novels I read as being poorly edited. I understand that, by being engaged as an author, my perspective has skewed from the days prior to my entering the industry as I now examine what I read in a different manner. Still, I cannot help but believe the need for crisp editing has gone out the window.Before I go further, I need to clarify something. I’m not talking about self-published works. I’m referring to novels being produced by the big publishing houses.
Call me old-fashioned, but I still have a penchant for buying print copy books instead of reading eBooks, and I tend to make my purchases…

View original post 467 more words

Leave a comment

Filed under Grammar/Punctuation