Skip to main content
QUICK REVIEW

[Paper Review] Temporal Analysis of Literary and Programming Prose

Brian Michalski, Mukkai S. Krishnamoorthy|arXiv (Cornell University)|Feb 9, 2012
Advanced Text Analysis TechniquesComputer Science1 references5 citations
TL;DR

This paper proposes a temporal analysis framework using the Google Ngram Viewer and commit logs to compare literary and programming prose, revealing that temporal references in both domains exhibit non-uniform patterns—such as disproportionate use of 'Sunday' in literature and uneven commit distributions in software projects—suggesting behavioral and cultural trends. The study demonstrates that both domains can be analyzed with similar statistical methods despite structural differences.

ABSTRACT

Literary works reference a variety of globally shared themes including well-known people, events, and time periods. It is particularly interesting to locate patterns that are either invariant across time or exhibit a characteristic change across time, as they could imply something important about society that those works record. This paper suggests the use of Google n-gram viewer as a fast prototyping method for examining time-based properties over a rich sample of literary prose. Using this method, we find that some repeating periods of time, like Sunday, are referenced disproportionally, allowing us to pose questions such as why a day like Thursday is so unpopular. Furthermore, by treating software as a work of prose, we can apply a similar analysis to open-source software repositories and explore time-based relations in commit logs. Doing a simple statistical analysis on a few temporal keywords in the log records, we reinforce and weaken a few beliefs on how college students approach open source software. Finally, we help readers working on their own temporal analysis by comparing the fundamental differences between literary works and code repositories, and suggest blog or wiki as recently-emerging works.

Motivation & Objective

  • To investigate temporal patterns in literary prose using widely available digital tools like the Google Ngram Viewer.
  • To compare temporal behavior in literary works and software repositories, focusing on time-based references and commit activity.
  • To test hypotheses about human behavior in software development, such as whether work is concentrated before deadlines.
  • To identify methodological differences between analyzing literary texts and software repositories, especially regarding versioning and temporal metadata.
  • To explore emerging hybrid forms like blogs and wikis as intermediate cases between literature and code.

Proposed method

  • Used the Google Ngram Viewer to extract relative frequencies of temporal n-grams (e.g., days of the week) from digitized books published between 1800 and 2000.
  • Treated software commit logs as temporal prose, extracting timestamps to analyze daily commit distributions.
  • Applied basic statistical analysis (e.g., z-tests, confidence intervals) to assess whether observed deviations from uniform distribution are significant.
  • Computed session lengths by clustering temporally proximate commits to estimate continuous coding sessions.
  • Used mean and standard deviation to summarize daily commit proportions and compare them against the expected 14.29% uniform distribution.
  • Evaluated project-specific commit patterns across eight open-source student projects to detect deadline-related clustering.

Experimental results

Research questions

  • RQ1Are certain days of the week, such as Sunday, referenced disproportionately in literary prose, and what might explain this pattern?
  • RQ2Do software developers exhibit non-uniform commit behavior, particularly clustering before deadlines, as suggested by project submission schedules?
  • RQ3How do temporal patterns in literary works compare to those in software repositories in terms of frequency and structure of time references?
  • RQ4To what extent do commit logs in open-source projects reflect predictable behavioral rhythms, such as weekly cycles or session durations?
  • RQ5Can blogs and wikis serve as a bridge between literary and software temporal analysis due to their hybrid nature of text and revision history?

Key findings

  • The day 'Sunday' is referenced significantly more often than other days in literary works, suggesting cultural or narrative significance beyond mere timekeeping.
  • The proportion of commits on Fridays and Saturdays in student projects is higher than the expected 14.29% uniform distribution, indicating possible deadline-driven work patterns.
  • No statistically significant deviation from uniform distribution was found for any day of the week across the eight projects, as all 95% confidence intervals for deviation included zero.
  • The average coding session length across projects was approximately 4.5 hours, with some projects showing notably longer sessions (e.g., RPIDirectory at 7 hours 29 minutes).
  • The analysis of multiple editions of literary works revealed only 40 out of 1,000 sampled books had more than one revision, limiting the scope for longitudinal literary analysis.
  • Commit logs in software repositories provide richer temporal metadata than literary texts, enabling more detailed and meaningful temporal analysis of development behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.