Tuesday, September 15, 2009

Salon Letter Filter Script beta

[(11/10/09) Salon has again changed its Letter format in conformance with its new beta page layout. Presumably this change will be permanent]

Salon has changed the format of their letters pages, obviously in order to make them even less readable than they were before, and the earlier Salon Letter Filter Greasemonkey script no longer works. Here is the text of a revised script that should function until Salon changes the format again. To install, copy everything between //BEGIN CODE and //END CODE into a text file (do not copy //BEGIN CODE and //END CODE). Name the text file salonletterfilterbeta.user.js and save it. If you already have Salon Letter Filter installed, you do not need to uninstall it before installing the new file. Simply open the new file in your browser (you can drag and drop). If Greasemonkey is installed and active, when you open the file a Greasemonkey dialog will appear asking if you want to install the script. Click on install.
Alternatively, if you think you know what you are doing, you can simply edit the installed script and replace those lines of code that have been changed with the new ones.

IMPORTANT: Your file name must end with .user.js for Greasemonkey to recognize it as a user script.

Do not panic if it appears that the lines of code end in midair on the blog page. It is all there even if it doesn't display because of the Blogger page layout. Simply select the code, copy it, and paste it into a new text file. Notepad or some other fairly simple text editor is recommended for this.
This version also removes ads from Salon Letter pages. If you actually prefer to see the ads, simply remove the code at the end that begins with “// ad remover”.
There is also an enhancement that increases the size of the poster's name slightly to make it easier to see. If you prefer the original setting, edit the file and put “//” at the beginning of the line that begins “thisAuthor.innerHTML = "<span style=”.
The greasemonkey script for the letter filter is no longer available as a download. To install it, you must copy the code from here into a file on your own computer. We regret the inconvenience.

// To configure the letters filter, you must have a "killfile" variable configured.
// A template for this variable is given below. The "killfile" varable includes a
// comma-delimited string of the nyms of the authors that you wish to filter out.
// A sample "killfile variable configuration looks like:
// new String(killfile = 'author1,author2,author3');
// or
// new String(killfile = 'author');
// Simply replace the word "authors" in the template below with the nyms of the authors you
// wish to expunge, each one separated by a comma, and save the file.
// Entries are case insensitive. Since the "killfile" will become a regular expression,
// regular expression metacharacters (such as "." or "+") appearing in a nym should be
// preceded by a backslash ("\"; e.g., 'L\.W\.M\.') in order to work properly.
new String(killfile = 'authors');
if (killfile.length == 0) exit;
// --------------------------------------------------------------------
// This is a Greasemonkey user script.
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
// To uninstall, go to Tools/Manage User Scripts,
// select "Letter_Filter", and click Uninstall.
// --------------------------------------------------------------------
// ==UserScript==
// @name Salon Letter filter beta
// @author Frankly, my dear, ...
// @namespace http://language-grammar.blogspot.com/2009/09/salon-letter-filter-script-version-002.html
// @description Filter letters from Salon. WARNING: manual configuration required. Before use you must edit the script and enter your "killfile" in the string variable near the top of the script.
// @include http://letters.salon.com/*
// @version 0.0.1
// ==/UserScript==

// Set debug to 1 to see debug output in Javascript console
var debug = 1;
// Only print information to console if debug is on
//function myGM_log(args) {
// if (debug == 1) {
// GM_log(args);
// }

// Shortcut function to evalute an XPath in the document
function xpath(query, sourceDoc) {
return document.evaluate(query, sourceDoc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);

myregexp = new RegExp(killfile.replace(/, */g, "|"), "i");
var allLets, thisLet, allAuthors, thisAuthor, allFooters, thisFooter, allHeads, thisHead;
allHeads = xpath("//div[@class='posts']/div[@class='letter']/h2[@class='headline md']",document);
allLets = xpath("//div[@class='posts']/div[@class='letter']/div[@class='deck md']",document);
allAuthors = xpath("//div[@class='posts']/div[@class='letter']/div[@class='byline'] | //div[@class='posts']/div[@class='letter']/div[@class='byline premium']",document);
allFooters = xpath("//div[@class='letter_entry_footer']",document);
for (var i = 0; i < allLets.snapshotLength; i++) {
thisHead = allHeads.snapshotItem(i);
thisLet = allLets.snapshotItem(i);
thisAuthor = allAuthors.snapshotItem(i);
thisFooter = allFooters.snapshotItem(i);
var author = thisAuthor.innerHTML;
thisAuthor.innerHTML = "<span style='font-size:90%;color:black'>" + thisAuthor.innerHTML + "</span>";
if (myregexp.test(author)) {
mymatch = myregexp.exec(author);
thisLet.innerHTML = "<h2><b>Letter from " + mymatch + " deleted</h2></b>" + thisFooter.innerHTML;
thisHead.innerHTML = "";
thisFooter.innerHTML = "";
thisAuthor.innerHTML = "";
//thisLet.innerHTML = "";
// ad remover
var allAds, thisAd;
allAds = xpath("//div[@class='ad_content' | //div[@id='ad_Top']",document);
for (var j = 0; j < allAds.snapshotLength; j++) {
thisAd = allAds.snapshotItem(j);
thisAd.innerHTML = "";

Sunday, September 13, 2009

Latin for Bloggers

[Author’s note: I started this contribution more than two years ago, but had to set it aside for more urgent undertakings (like a filter for Salon letters), but the recent posting by Joe Klein on Time’s Swampland blog in which he casually inserted what he apparently thought was a Latin phrase, *ad nauseum (I say apparently because he put the phrase in italics, indicating that he didn't consider it English). Since this solecism, while extremely common on blogs, now has the imprimatur of Time Magazine (presumably Swampland doesn’t have an editor, or at least not one familiar with Latin), it is clearly time to dust off this little excursus on the misuse of Latin by bloggers in hopes of, if not encouraging the miscreants to mend their ways and look up things that they don't know (after all it is hard to change the habits of a lifetime), at least heaping well-deserved ridicule and scorn on their pretentiousness.]

Yeah, I know — this blog is supposed to be about English. But English is a voracious language that accepts not only unlimited loan words but also takes over foreign words and phrases wholesale. In fact, according to James D. Nicoll:
We don’t just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary.
— James D. Nicoll

But I digress. Not only was English syntax consciously remodeled after Latin in the 17th and 18th centuries, but the prestige of the classical languages led to a great number of neologisms based on Latin and Greek roots as well as many loanwords taken directly from the classical languages. Indeed, many common abbreviations used in writing were based on Latin phrases (i.e., e.g., loc. cit., etc.). By contrast, English's sister language rejected most of the Latin/Greek etymologies and instead calqued (loan translated) the English into German (E. rhinoceros [‘nose horn’], G. Näshorn; E. exposition, G. Ausstellung; E. television, G. Fernseher, and so on) and uses German abbreviations rather than abbreviations of Latin (d.h., z.B., a.a.O., usw.).

The prestige of the classical languages has also ensured that many Latin phrases and expressions are used in English prose to give status to the author as an educated person (there was a time, not all that long ago, when a knowledge of Latin and Greek was simply the mark of an educated person; no one went to university without knowing Latin and Greek). Indeed, in many European universities dissertations were still written in Latin well into the twentieth century.

Latin (and to a considerably lesser extent Greek) expressions thus find their way into English prose, either because they are well known and familiar, or because writers wish to show, by their knowledge of Latin, that they are educated persons. What then of those who misuse Latin expressions in their writing? — get the wrong expression, misspell them, use the wrong case, or just generally demonstrate a complete lack of knowledge of Latin vocabulary, grammar, and syntax? If one is generous, one could just say that they made a mistake — everyone makes mistakes; if one is less generous, one might be inclined to say that they are trying to capitalize on the prestige generated by the use of Latin and mark themselves as knowledgeable and educated when, in fact, they lack the knowledge and education that they are implicitly claiming.

Here then are some of the most common mistakes to be found in the use of Latin by bloggers (and by blog commenters):

Habeas Corpus

  • Most common mistake: habeus corpus (Google gets about 112,000 hits for “habeus”, but is self-correcting in that a search for “habeus corpus” returns habeas corpus as well)
  • Reasons for the mistake:
    • Lack of knowledge of Latin plus a general belief that all Latin words end in -us or -um.
    • There is a natural linguistic tendency for making word pairs, especially when the words are foreign/not understood (i.e., nonsense), phonetically congruent. Thus ‘hocus pocus’, ‘abra cadabra’, ‘jibber-jabber’, and so on.
    • A pronunciation spelling since the final a of habeas is unstressed and hence pronounced as shwa (an uh-sound; [ə]) and thus phonetically matches the final syllable of corpus triggering the spelling of habeas as *habeus.
  • The correct form and interpretation:
    • The expression ‘habeas corpus’ is now fully English. There is no need to italicize it (although it frequently is) and it will be found in practically any dictionary of English. It represents the Latin habeās corpus, “produce the body,”, from habeās, second person sing. present subjunctive of habēre, ‘to have’ + corpus, ‘body.’
    • Using this expression cannot be considered a bid for prestige, since it has no English equivalent, there is no simple English phrase that expresses the concept; for the reason for this, see here. There is, however, no excuse for misspelling it if one is at all familiar with Latin.

Casus Belli

  • Most common mistakes: cassus belli, causus belli
  • Reasons for the mistakes:
    • It is difficult to characterize cassus belli as a mistake because the form cassus does occur in Latin. This is the result of a process that is fairly common cross-linguistically, usually known as metathesis of length or quantitative metathesis. This often involves two consecutive vowel sounds, one short and one long, where the length is transferred from one vowel to the other, but it also occurs between a long vowel and a following consonant so that the vowel is shortened and the consonant is lengthened (doubled). The basic form is cāsus so in living Latin the form cassus is a natural variant. As for English, it has no long vowels (although most speakers don't realize this), so if the pronunciation given by the OED is followed ([keɪsəs], i.e., with the same vowel sound as in English ‘case, cases’), then the spelling <casus> is likely. However, if the more common value of written a ([æ]) is used in imitation of Latin a then the spelling <cassus> is natural (compare the a-sounds in ‘plate’ and ‘platter’) and “cassus” is again a pronunciation spelling.
    • A secondary reason for the use of “cassus belli” is name recognition: Cassus Belli is a well-known rapper from Lyon.
    • The error “causus belli” comes from confusing Latin causa, “cause,” with Latin cāsus, “case,” and then making causa into *causus, again in the mistaken belief that all Latin words end in -us or -um, perhaps abetted by a faint memory of “casus belli.” This mistake is perhaps natural because cāsus bellī is frequently translated, or at least thought of, as “cause of war” rather than the more appropriate “case for war.” There is nothing wrong with causa bellī, “cause of war”; it is perfectly good Latin. But *“causus belli” is not.
  • The correct form and interpretation:
    • The correct English form is casus belli, representing the Latin cāsus bellī, “case for war.” It is usually italicized as a foreign phrase. The phrase came into use in the 17th and 18th centuries as as a technical term as part of the political “just war” doctrine. Anyone intending to wage a “just war” was expected to provide a cāsus bellī or a “case for war.” Thus the term comes from New Latin, rather than from the living language of the classical period and hence “cassus belli” is not a natural variant. The technical term chosen was cāsus bellī and that is what the correct term is. While causa bellī is good Latin, it also is not the technical term used in connection with the “just war” doctrine. And *“causus belli” is nothing but a mistake, pure and simple.

Ad Nauseam

  • Most common mistake: ad nauseum (although I confess to having seen ad nauseaum at least once)
  • Reasons for the mistake:
    • Lack of knowledge of Latin plus a general belief that all Latin words end in -us or -um plus analogy to similar phrases, such as ad infinitum, that properly have the case ending -um.
  • The correct form and interpretation:
    • This one is really a no-brainer. The Latin word for ‘nausea’ is — surprise, surprise — nausea; the preposition ad when it expresses motion governs the accusative case; the accusative singular of nausea is nauseam. Therefore, the correct expression is ad nauseam, “to the point of disgust/revulsion/nausea.”
    • The expression is actually a shortening of a term from logic, argumentum ad nauseam, in which an argument is repeated over and over until your opponent just gets sick of hearing it. There are many such terms based on the argumentum ad … format, and, since many Latin nouns are second declension masculines or neuters and since the accusative singular of both masculine and neuter second declension nouns is -um, those who are unfamiliar with Latin may be led to believe that the object noun in this construction always ends in -um. However, everyone is familiar with the expression argumentum ad hominem (often shortened to ad hominem, but, interestingly enough, never seen as *“ad hominum”) so everyone has the means at their disposal to disprove this belief and realize that the -um ending in this formula is not invariant. Moreover, there are a sufficient number of first declension feminines used in this formula (argumentum ad consequentiam “to the consequence”, ad crumenam “to the purse”, ad ignorantiam “to ignorance”, ad logicam “to logic”, ad misericordiam “to pity”, etc.) that it should be obvious to anyone with any familiarity with Latin or logic or even English that there are more endings than -um possible in the argumentum ad … formula.

I'll call a halt to this here, but there are, needless to say, many other Latin phrases that can be, and are, abused regularly. These are just three of the most common abuses, seen on an almost daily basis and done by those who ought to know better. There is no excuse for this, especially when there are numerous lists of common Latin phrases available on the intertubes. Wikipedia has one and while Wikipedia may not alway be reliable on controversial issues, for straightforward matters of fact they are pretty good. If you don't want to use Wikipedia, there is always “The Google” and you can simply Google “list of Latin phrases” and take your choice.

A writer's use of Latin phrases here and there is expected to give his or her work a certain cachet and accord the writer a certain amount of respect for his or her knowledge and education. But nothing screams ignorance and incompetence more loudly than misusing the very devices meant to demonstrate knowledge and competence.