Category Archives: Corpus Linguistics

TGrep2

In response to Lyn’s query about possible positional effects for distributive phrases, I thought I’d post a short bit on how that information might be found with tools that are readily available. TGrep2 is a utility that allows you to conduct a regexp-like search of corpus that’s parsed in Penn Treebank style, and it’s really useful for asking these sorts of questions. Doug Roland has very helpfully posted some executables of TGrep2. For people using intel-based Macs, this is the probably the simplest way to install the tool on your computer. Download the executable, name it tgrep2, make sure it has the right permissions with chmod (executable), and put it in /usr/local/bin. If it’s installed correctly, you should be able to type tgrep2 from a command prompt and have it display some help.

Continue reading