Search & replace service

WordService is fabulous — I use it all the time. There are two frequent transformations I need to perform when copying text from a PDF (using Skim) that it doesn’t handle, though: 1) replacing " - " (space-hyphen-space) with “—” (em dash), and 2) replacing "- " (hyphen-space) with nothing (i.e. “”). In that order.

Does anyone know how to script a service to do that?

WordService isn’t scriptable but as far as I remember there are some scriptable services out there but not all of them are/were free.