Zhangsan unmasked

Added on by Ed Cormany.

[note: this is my first linguistics qua linguistics post here, as opposed to on Descriptively Adequate. i'll keep those old posts archived there, but i think everything new will live on ecormany.com] 

anyone who's read more than their fair share of syntax articles knows about John and Mary, the dull protagonists of every English example sentence. John kissed Mary. Mary was kissed by John. *Mary was given by John the book.

read even more and you'll figure out that several languages have their own stock characters. Italian has Gianni (who keeps making telephone calls). Japanese has Taroo and Hanako. Mandarin has Zhangsan and Lisi.

i never quite knew what to make of these names. does Zhangsan have all the same connotations of plainness as John? out of curiosity, i turned to Google Translate. i remember some old Language Log posts [1] [2] on how to fool the software into giving you odd "translations" for proper names that reflected parallel uses. for example, Austria is the Ireland of Germany, apparently. to do this, you had to be crafty or happen upon it by accident, since you had to input English text but tell Google that the source was in fact German. the possibilities for things going wrong when you ask a computer program to translate English to English with a German-to-English algorithm are rife.

anyway, back to Zhangsan. to query GT on him, i had to play some tricks too. as far as i can tell, GT doesn't take romanized input for either Chinese or Japanese, so to get his name in characters, i had to  "translate" the string 'Zhangsan' from English to Chinese.

Zhangsan.jpg

next, those two characters back into the Google Language Mangler to get our English equivalent! drumroll for… 

Joe Smith.jpg

…Joe Smith. i think he'll get along  great with John.

gradebook automation with TextExpander and Keyboard Maestro

Added on by Ed Cormany.

i'm teaching my writing seminar course for the fifth time this semester. you would think that would mean that the class is running at peak efficiency. in terms of what goes on in the classroom, it is. but there's one big difference behind the scenes: the last time i taught the course (in 2011), i hadn't yet been converted to TextExpander, Hazel, or Keyboard Maestro. and now i have them all at my disposal.

the old system: a sliding rubric spreadsheet

gradebook-slider.gif

i teach a writing seminar, so the bulk of the assignments are essays. i give letter grades on these, but don't assign points to them. however, by the time the semester is done, students have written 6 or 7 short essays. i could eyeball 6 letter grades and try to come up with a fair average for everybody, but i know it wouldn't come out equal. so for equanimity and ease of computation, i convert all the letter grades to numbers on the back end. i could just apply a fixed rubric and be done, but i like to have a little bit more control over the grade distribution — again, without inadvertently creating bias towards one student or another.

to accomplish this, i set up a two-table spreadsheet in Numbers, one with students' scores, and one with a rubric. last year i waited until the entire semester was over and then ran a bunch of manual find-and-replace commands to link each grade cell to the corresponding rubric cell. the result is the only actually useful implementation of Numbers' slider cells that i've ever found. as you can see easily from the conditional formatting that i've put on the "paper average" column, tweaking individual paper grades triggers related changes in the course grades.

the automation: enter TextExpander

this semester, i decided that i didn't want to wait until all the papers had been collected and graded to be able to see the quantitative results. to do that, i needed a fast way to create a reference to the rubric cells. there's a mousey way (select the grade cell, type =, click the rubric cell, type enter), but it's slow and error-prone. instead, i decided to write a quick TextExpander script snippet that would give me a fill-in field where i could just type in the grade and have the cell reference generated automatically. it's not the prettiest thing ever — just a manual lookup in a hash — but it's fast and effective. if i accidentally mistype a grade, it returns no output, which is better than mis-clicking a rubric cell or bringing down the wrath of Numbers' formula editor in more creative ways. now i just type "gbg" (for gradebook grade) and i get this form:

gradebook snippet.gif

in testing, i can enter a full column of grades for my 18 students in 60–90 seconds. way better than waiting until May to sort it out.

more column-filling: attendance

i also keep a separate Numbers spreadsheet for attendance. i admittedly print this spreadsheet out (blasphemy, i know!) because making tickmarks with a pencil as my students enter the room is still the quickest, least intrusive way of keeping track. at the end of each week, i transfer the information back to my spreadsheet, which counts up absences and tardies and counts them against my students' allowable absences (3 per semester; tardies count as 1/3 of an absence).

again i was looking for the fastest way to transfer this information. that involves marking absences X and tardies T and then filling in the rest with checkmarks ✔. the simplest manual solution is to fill the whole column with checkmarks and then insert the X's and T's, but all the extra symbols are pretty visually distracting. then i wind up doing a lot of copy-pasting and working with Numbers' very finicky drag-to-fill operation.

it's almost certainly overkill, but i decided to build a Keyboard Maestro macro to do the filling for me. the method is simple:

  1. grab the contents of the current cell
  2. see if it matches T or X
  3. if not, fill it with ✔
  4. move down one cell
  5. repeat until it hits the bottom (current cell = ✔)

the format of the macro is below. i'm sure there's a better way (perhaps involving Applescript?), but i was happy for the practice building some more complex macros. and i'm guessing that it could be adapted to several other data-entry scenarios where the application isn't directly scriptable.

km attendance macro.gif

it's all about repetition

teaching and learning are all about repetition. for the instructor, there are always tasks that have to be iterated across students, or across class meetings. the best we used to be able to do was build muscle memory. now we can build tools.

a couple other things that i've automated so far this year that i may post on later include exporting Keynote slides to PDFs and sharing them, and batch-processing assignment files downloaded from course management software. even if i'm not coming out time ahead, it keeps the process fresh.

tennis and not

Added on by Ed Cormany.
[Roger Federer] has, figuratively and literally, re-embodied men’s tennis, and for the first time in years the game’s future is unpredictable.
— David Foster Wallace, "Federer Both Flesh and Not", 2006
It’s changed a little bit, hasn’t it, in the last six to seven years?
— Chris Fowler, Australian Open men's final, ESPN2, 2013

three weeks ago, i read nearly all of David Foster Wallace's Both Flesh and Not: Essays in the span of a day for @24hourbookclub. it was my first DFW experience…all i knew before then were vague murmurings about this author who liked footnotes and had written an absolutely monster novel ostensibly about tennis.

i was coming late to the party, so i skipped the title essay (and two more) and dove right into the fourth chapter, "Democracy and Commerce at the U.S. Open". by the time the first paragraph had concluded, my mind was vividly in two places, or more accurately two times. the entire surrounds of Louis Armstrong Stadium 2010 came into crisp focus, along with its cast of characters — Schiavone, Monfils, Querrey, Söderling — while Armstrong 1995 got painted in big oil-brush strokes, Sampras and Philippoussis the protagonists. i could sense the great, gaping absence of Arthur Ashe Stadium over my shoulder, alternately two years from completion and thirteen years old, and i could feel the sun burning me, the worst of my life, so bad that it got inside my right ear and turned my SPF 50'd knees crispy for a week. DFW then led a tour of the grounds, a bit more behind-the-scenes than my novice day-pass-holder memories, but everything was perfectly congruous, right down to the attire of minor stadium staff. in fifteen years at the U.S. Open, not one damn thing had changed (Ashe notwithstanding). except the tennis.

two weeks ago, i sat down on Sunday afternoon to make good on my book club omissions, starting with "Federer Both Flesh and Not"…especially that essay, in anticipation of the kickoff of the 2013 grand slam season at 7 PM Eastern, 11 AM Monday in Melbourne. the essay plays out in two acts: 1) on what it's like to see tennis performed at the highest level, live, and 2) a history of what DFW calls the "power-baseline" game. these two acts are set against the backdrop of the 2006 Wimbledon Gentleman's Singles Final, a venue for Federer to assert his dominance over Rafa Nadal, who at that point had only won anything of consequence on clay. (In 2006, Nadal came out of nowhere and went 14–0 at Roland Garros to win two French Open titles in his first two tries. In 2013, his lifetime record there is a stonking 52–1 equaling seven titles and, unlike at the other majors, he hasn't missed a single year.)

by all accounts, DFW's beautiful prose included, the 2006 final was a very good tennis match, taken in four sets by Federer. on the other hand, except to provide historical context, it has fallen off the list of top matches of the past decade. like a runaway bidding war at an auction, where both parties have completely forgotten what they're even purchasing but dammit must not lose, the top level of professional tennis has outdone itself year in and year out. to wit:

  • Wimbledon 2007: Federer over Nadal in 5
  • Wimbledon 2008: Nadal over Federer, at last! 9–7 in the 5th.
  • Wimbledon 2009: could you ask for more? yes. Federer's gut-punch win over Andy Roddick, converting just a single break point to win 16–14 in the 5th set.

the question justly posed is: how can spectators even comprehend what's going on down there? and by the time we've reached a grand slam final, it really is "down there." even the in-person spectators are piled up in a giant bowl of a stadium, and would have a better vantage looking through the filter of TV's baseline camera angle. as i watched hours and hours of the 2013 Australian Open on my iPad, propped up on the desk next to me or on my lap, i had the power to hold all of Rod Laver arena comfortably in two hands. (i could just as well have put it in one hand on my iPhone, but then the players are such tiny toys that i have to squint to look for the ball.) as DFW points out, tennis is a strange TV sport. i would argue that it's number two on the "most improved by HD" list (hockey is the clear winner). the increased clarity is perfect for tracking the ever-faster ball, but the wider aspect ratio is wasted, filled with empty swaths of blue, burnt orange, green, and blue (for each major, respectively). for a few fleeting moments this Aussie Open, ESPN2 showed full-speed replays of points from a fixed, isometric view. the frame was filled with action from corner to corner and, compared to the squat trapezoid tennis fans are used to, the court seemed a mile long and the ball took on a blazing life of its own. i would have paid money to get that camera feed for the entire match. i suppose that's why they sell tickets.

in the past year, i put a tennis racket in my own hand for the first time since high school and, stepping out onto the court, the delimiting white-on-blue rectangle feels big. unmanageably big. i can barely cover a third of this space big. yet, in miniature pixels i watched the top players seemingly teleport themselves from sideline to sideline in two and a half steps, or take a third to run around and convert a tricky backhand into a walloping inside-out forehand. they must have mutant blood. this is the power-baseline game, which i've observed as the primary mode of tennis since…circa 2006. so how was Wallace already writing its history at what i perceived to be its beginning? i think his term, "power-baseline", is spot on, and we are reaping its benefits in 2013 by seeing the most exciting tennis ever being played on both the men's and women's sides of the draw.

when i was a kid, being raised on NBC's woefully inadequate (but hey, it's all we had pre-internet) coverage of Wimbledon, tennis had it's boring moments. in 1993, the action game show American Gladiators was in its heyday, and featured an event called "Assault", wherein the "gladiator" shot tennis balls out of a cannon at the contestant at — they noted every episode — 104mph, unhumanly fast. then some of the top male tennis players started cracking serves faster than that, and nobody could return them. boom, 15. boom, 30. boom, 40. boom, game Sampras. it was borderline unwatchable. in the women's game, the points lasted longer…too much longer, as the only strategy seemed to be "pray for an unforced error." the men had power and the women had baseline, and it seemed never the twain should meet.

but then Andre Agassi figured out how to return fast serves. then all the men did. (DFW traces this back to Ivan Lendl, but if anything, Lendl was ahead of his time and not the root of a greater strategic arc. he's applying the strategy quite well now from the sidelines, coaching Andy Murray.) then Venus and Serena started crushing the ball, both on the serve and from the baseline. then all the women did. power got an infusion of baseline, and baseline got an infusion of power. in 2006, this was the brave new world of 21st century tennis, and because it felt so fresh and awe-inspiring, i don't fault DFW for throwing his hands up in the air and calling the future unpredictable. in 2013, though, we've settled into an interesting pattern. the men and women play the same style of game, the distribution of talent is roughly equal, yet the draws feel totally different. for the men, the Big 4 — Djokovic, Nadal, Federer, Murray, now in that order — entertain 124 other contenders…do your best. for the women, the field is wide open; anyone with or without a number in front of their name has a shot at the semifinals, if not the title.

as an amateur observer, i'd like to entertain the hypothesis that these states of order and chaos both owe themselves to the power-baseline game. power creates order over time and chaos in the short term, so what is the crucial difference between men's and women's tennis, at least in the grand slams? best of five versus best of three. the men's game is more forgiving of small lapses, and rewards the players who are most consistent. the number one man in the world, Novak Djokovic, could not be more consistently good right now, just having taken a third consecutive title Down Under to the surprise of no one. he was so good that he was trumping variance when he made his rise to #1 in 2011, winning the first 40 matches of the year (including some best-of-three affairs). while that was happening, the women's game was in utter disarray, crowning three ladies #1 without ever winning a major title. Dinara Safina never will. Jankovic and Wozniacki are, at this point, being lumped in with "the rest of the field" by oddsmakers. they are victims of variance: highly talented players in an environment where dropping a set is danger, and dropping two is a loss.

i've wanted the women to play best of five in the majors for several years now. they are in every bit of physical condition as the men (i'm fairly certain that Serena Williams could crush me with her pinky finger, and Maria Sharapova stands a full head taller than me). they are also being paid the same amount as the men, so the only real concern seems to be scheduling; there's a finite amount of court time, especially at weather-plagued tournaments like Wimbledon and the U.S. Open. nevertheless, working within the format, there have still been some thrilling matches between today's top ladies, e.g. Dementieva – Stosur at the 2010 U.S. Open (high on my list because i was there, all the way until 2 AM), and both of the 2012 Australian semifinals. and at the other end, there is still room for domination…witness Sharapova's insane run in the first five rounds in Melbourne, losing just nine games in ten sets before running into Li Na like she was a brick wall. in the end, Vika Azarenka defended her title, just as Novak did the next night, but there was zero sense of inevitability about it.

this is the two-headed beast of modern tennis, and, if i've done it any justice in words, it is tremendously exciting. it is not uniform, but perhaps that is to our advantage. and it no longer is embodied in any one man. as much as anyone, including himself, is loathe to admit it, Roger Federer is slowly on the wane. his whipping backhand and master strategy still outshines all but three humans on this planet, as the cliff drop between #4 and #5 on the ATP rankings documents neatly. his future, and the future of tennis, do not seem unpredictable. we are finally, really, solidly in the midst of a great era in this sport, and Federer (and Williams and Williams) ushered it in. it's hard to say what David Foster Wallace would think of Tennis 2013, seeing as the final major in his lifetime was the 2008 U.S. Open (another Federer triumph, for the record). but his phrase, "…and not", invites many possibilities. "and not" is contrasted with "flesh", but almost certainly does not refer to Roger Federer's racket. or the pixels arrayed to display him on my iPad. or even his topspin. it is much more likely "&c," an unbounded and still-growing list of everything that he has transformed by physically whacking a tennis ball. it will be on display again in June in Paris, and i'll be watching.

made connections

Added on by Ed Cormany.

yesterday i did something that used to be impossible.

i shuffled down a line of people waiting to order food, scanning faces. i stopped at someone, head-down, tapping (a message to me, it turned out) on a white iPhone.

"Diana? nice to see you!" we hugged. to the best of my knowledge, Diana and i had never before been in the same room at the same time.

that's how i met an old friend for the first time. describing it that way makes it sound paradoxical, oxymoronic, …impossible. but in the moment it felt natural, comfortable, real. that the first words out of my mouth weren't "nice to meet you" surprised neither of us. we already knew each other. you don't need to stand on ceremony with friends.

how do friendships build to that point? the answer is a little bit of the real world and a lot of the internet. in this case, our lives both orbited around Ann Arbor, MI at roughly the same time. we acquired mutual experiences, mutual friends…spirals and concentric circles, never crossing. but we became aware of each other's existence, and followed our subsequent revolutions around the country and around twitter, the web, soundcloud. because we followed each other, we were able to realize that our paths finally, serendipitously were passing very close to each other. only a minor course correction — negotiated over twitter DM — and we landed in Cambridge, MA, at the same organic cafe, on the same afternoon.

a generation ago, ten years ago, hell, probably even five years ago, we would have just been one long string of missed connections. yeah, that person i heard about a while ago. no, dunno what they're up to now. but in 2013, we connected. frequently it's difficult to explain to people on the outside what you get from twitter. when you tell them that it connects you with people you care about, their faces usually scrunch up with skepticism. but the internet isn't just a TCP/IP connection, a handshake of packets and bits…it's also a satisfying human handshake, the kind where the webbing of your thumb presses tight and for a few seconds, subliminally, you feel the other person's pulse and another flesh and blood creature becomes part of your life experience.

regardless, i'd be lying if i didn't point out the touch of surreality around an otherwise lovely afternoon that led to wonderful conversation. Diana was the third of my twitter friends that i'd met in the course of the weekend (hi Arika and Heather!). when people i knew from words and pictures kept materializing in front of me, i got the unnerving sense that Some Magic was going on. the fabric of reality seemed to have a little pinhole in it, and i was standing on its frayed edge.

in normal circumstances, i'm convinced of the firm reality of the world…to bend and break Decartes, cogito ergo sunt — "i think, therefore they are." i experience the world, and therefore it's either objectively real or i'm inventing the whole thing as i go, and i feel that the latter is a bit beyond my skills. but words are so close to thoughts, and despite the internet's connective power, it tends to reduce to words. if i were uncareful about how i strung those facts together, i could fool myself into thinking that i was conjuring people out of nothing.

but the only magic that really happened this weekend is that the world got smaller. or, perhaps not smaller — since everyone involved had traveled distances more or less great to arrive in Boston — but denser. i've said before: the internet is like living in a big city. it pushes and pulls people together and lets us create and share and laugh and talk and become friends. it's possible.