Computational Approaches to Textual Scholarship:
The ARTFL Project's French Digital Collections
Clovis Gladstone
The ARTFL Project
The Textual Optics Lab
The Origins of ARTFL
The ARTFL Project
The Textual Optics Lab
Access: Subscription/Consortium Model
The ARTFL Project
The Textual Optics Lab
Implications of the Subscription/Consortium Model
Our objectives fall into three basic categories that have defined themselves in the context of the consortium model. Providing a set of services to the humanistic scholarly community.
1. Collection development - quantity, quality.
2. Software development (PhiloLogic): improving the means of access to the collection.
3. Inquiry: participating in digital humanities scholarship and research.
�
The ARTFL Project
The Textual Optics Lab
Collection Development
We have integrated into our main ARTFL-FRANTEXT database over 1,000 new works, and, through a series of collaborations and in-house efforts, we have also created a number of stand-alone text databases, dictionaries, and other resources both for subscribers and public access.��ARTFL's collection grows in three ways:
The ARTFL Project
The Textual Optics Lab
ARTFL's French digital collections
Public collections:
Subscription collections:
The ARTFL Project
The Textual Optics Lab
The ARTFL Project’s Databases
To support all the databases ARTFL maintains (over 200, 50 French), we have had to develop a range of digital tools for textual analysis:
The ARTFL Project
The Textual Optics Lab
Why so many different options?
The ARTFL Project
The Textual Optics Lab
Software Development
ARTFL has developed its own open source search and retrieval software PhiloLogic, which is a flexible, fast and reliable text analysis system. The development of PhiloLogic was guided by two principle ideas :
The ARTFL Project
The Textual Optics Lab
PhiloLogic: our corpus query engine
Open source full-text search and analysis system which has its roots in the tradition of philology.
=> retrieve all occurrences of a word
=> use of an inverted index for word retrieval
=> metadata queries in PhiloLogic work as a filter:
search for word X in documents Y = search for word X, filter out all
results that don’t satisfy condition Y
The ARTFL Project
The Textual Optics Lab
PhiloLogic: scale and intuitiveness
PhiloLogic is meant to provide concordances over tens of thousands of texts.
Its design is guided by three principles :
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
PhiloLogic as a work environment
The ARTFL Project
The Textual Optics Lab
The limits of concordances in the Age of Big Data
Concordances are a powerful investigative tool but it has some clear limitations:
"There are only about 30,000 days in a human life -- at a book a day, it would take 30 lifetimes to read a million books and our research libraries contain more than ten times that number. Only machines can read through the 400,000 books already publicly available for free download from the Open Content Alliance."
Gregory Crane
The ARTFL Project
The Textual Optics Lab
Navigating from Afar: Data-Mining
The ARTFL Project
The Textual Optics Lab
Navigating from Afar: Vector Space Similarity
The ARTFL Project
The Textual Optics Lab
Navigating from Afar: Vector Space Similarity
a
The ARTFL Project
The Textual Optics Lab
Navigating from Afar: Vector Space Similarity
The ARTFL Project
The Textual Optics Lab
Sequence Alignment
Generalized technique to identify regions of similarity shared by two strings or sequences.
AKA: longest common substring problem.
Applications in many domains, including:
The ARTFL Project
The Textual Optics Lab
Advantages of Sequence Alignment
The ARTFL Project
The Textual Optics Lab
Our sequence alignment software: TextPAIR
TextPAIR inherits its basic algorithm from PhiloLine developed at the ARTFL Project: https://code.google.com/archive/p/text-pair/
https://github.com/ARTFL-Project/text-pair
The ARTFL Project
The Textual Optics Lab
How TextPAIR works
N-grams are blocks of N words usually constructed after various preprocessing steps. These ngrams are generated leaving some overlap from one to the next:
�The cloud-capped towers, the gorgeous palaces,�The solemn temples, the great globe itself—�Yea, all which it inherit—shall dissolve�(Shakespeare, The Tempest, Act 4, Scene 1) ca. 1611��cloud_capped_towers, capped_towers_gorgeous, towers_gorgeous_palaces, gorgeous_palaces_solemn, palaces_solemn_temples, solemn_temples_globe, temples_globe_itself,globe_itself_yea, itself_yea_inherit, yea_inherit_shall, inherit_shall_dissolve
The ARTFL Project
The Textual Optics Lab
Ngram Creation Parameters
The ARTFL Project
The Textual Optics Lab
Matching parameters
There are many parameters, but the main ones are:
The ARTFL Project
The Textual Optics Lab
How the alignments are found...
Pairwise comparison between two documents:
The ARTFL Project
The Textual Optics Lab
Example of alignment with moderate additions
Rousseau, Discours sur l'inégalité (1755)
...désir général qui porte un séxe à s'unir à l'autre ; le moral est ce qui détermine ce désir et le fixe sur un seul objet exclusivement, ou qui du moins lui donne pour cet objet préferé un plus grand dégré d'énergie...
Analyse des observations des tribunaux d'appel… (1801)
...désir général qui porte un sexe vers l’autre., appartient uniquement à l’ordre physique de la nature : mais le choix, la préférence ; l’amour qui détermine ce désir, et le fixe sur un seul objet, ou qui, du moins, lui donne, sur l’objet préféré, un plus d XXVJ DISCOURS grand degré d’énergie...
The ARTFL Project
The Textual Optics Lab
Example of alignment with moderate additions
Rousseau, Discours sur l'inégalité (1755)
...désir général qui porte un séxe à s'unir à l'autre ; le moral est ce qui détermine ce désir et le fixe sur un seul objet exclusivement, ou qui du moins lui donne pour cet objet préferé un plus grand dégré d'énergie...
Analyse des observations des tribunaux d'appel… (1801)
...désir général qui porte un sexe vers l’autre., appartient uniquement à l’ordre physique de la nature : mais le choix, la préférence ; l’amour qui détermine ce désir, et le fixe sur un seul objet, ou qui, du moins, lui donne, sur l’objet préféré, un plus d XXVJ DISCOURS grand degré d’énergie...
The ARTFL Project
The Textual Optics Lab
Example of alignment with more significant additions
Rousseau, Emile (1762)
...je puis sentir ce que c'est qu'ordre, beauté, vertu, je puis contempler l'univers, m'élever à la main qui le gouverne, je puis aimer le bien, le faire, et je me comparerois aux bêtes? Âme abjecte, c'est ta triste philosophie qui te rend semblable à elles ; ou plustôt tu veux en vain t'avilir ; ton génie dépose contre tes principes, ton coeur bienfaisant dément ta doctrine, et l'abus même de tes facultés prouve leur excellence en depit de toi...
Bertrand, Jean-Baptiste-Auguste, Étude philosophique sur l'homme (1876)
...je puis sentir ce que c’est qu’ordre, beauté, » vertu ; je puis contempler l’univers, m’élever à la main » qui le gouverne ; je puis aimer le bien, le faire, et je me » comparerais aux bêtes ! » Content de la place où Diou l’a mis, il ne voit rien de meilleur que son espèce. Il avoue que cette réflexion l’enorgueillit moins qu’elle ne le touche, parce que cet état n’est point de son choix. Mais, avant cette réflexion, quelle apostrophe ne fait-il pas au philosophe qui se confond avec la brute ! « Ame abjecte, lui dit-il, » c’est la triste philosophie qui te rend semblable aux bêtes ; » ou plutôt tu veux en vain t’avilir: ton génie dépose contre » tes principes. Ton coeur bienfaisant dément ta doctrine, » et l’abus même de tes facultés prouve leur excellence en » dépit de toi...
The ARTFL Project
The Textual Optics Lab
Example of alignment with more significant additions
Rousseau, Emile (1762)
...je puis sentir ce que c'est qu'ordre, beauté, vertu, je puis contempler l'univers, m'élever à la main qui le gouverne, je puis aimer le bien, le faire, et je me comparerois aux bêtes? Âme abjecte, c'est ta triste philosophie qui te rend semblable à elles ; ou plustôt tu veux en vain t'avilir ; ton génie dépose contre tes principes, ton coeur bienfaisant dément ta doctrine, et l'abus même de tes facultés prouve leur excellence en depit de toi...
Bertrand, Jean-Baptiste-Auguste, Étude philosophique sur l'homme (1876)
...je puis sentir ce que c’est qu’ordre, beauté, » vertu ; je puis contempler l’univers, m’élever à la main » qui le gouverne ; je puis aimer le bien, le faire, et je me » comparerais aux bêtes ! » Content de la place où Diou l’a mis, il ne voit rien de meilleur que son espèce. Il avoue que cette réflexion l’enorgueillit moins qu’elle ne le touche, parce que cet état n’est point de son choix. Mais, avant cette réflexion, quelle apostrophe ne fait-il pas au philosophe qui se confond avec la brute ! « Ame abjecte, lui dit-il, » c’est la triste philosophie qui te rend semblable aux bêtes ; » ou plutôt tu veux en vain t’avilir: ton génie dépose contre » tes principes. Ton coeur bienfaisant dément ta doctrine, » et l’abus même de tes facultés prouve leur excellence en » dépit de toi...
The ARTFL Project
The Textual Optics Lab
Example of alignment with problematic OCR
Cantiques de St. Eustache, martyr, et du mauvais riche (1700)
...écoutes, Prends les routes, Qui conduisent à bon port: Ce glouton vient de t'apprendre, Qu'il faut rendre Un grand compte après la mort. Fuis de ce richard le vice D'avarice, Donne aux pauvres largement; Fuis les excès de la bouche, Et ne touche A tes mets que sobrement. Fais grand cas de tes misères Salutaires, Ainsi que Lazare a fait...
Durand, Laurent, Cantiques de l'âme dévote (1816)
...écoute s’, 'Prends les route »; ……. -"i^Qui^eondiiisent^à --bon portr • ■§• ■■■'■' Ce glouton vient déU%ip prendre Qtfïil faut rendre *" ■■■' -Un’'-grand to.mpte aprèéslâ-moïK*'.'■" gt;Fuis de ce Richard 1e^vice 1 '■■- ■ - - ^D’avarice ;] ; ■ ?'■'• … Donne aux p ouvres largeojieat-f-^- »- •"- ' &« E E'AME DêrorE, a ? 3' Fuis les excès delà- bouche , \ Et ne touche A-lés’mets ;que sobrement ; Fais grand cas’Se les-misères, Salutaires ,. Ainsi que Lazare a fait...
The ARTFL Project
The Textual Optics Lab
Example of alignment with problematic OCR
Cantiques de St. Eustache, martyr, et du mauvais riche (1700)
...écoutes, Prends les routes, Qui conduisent à bon port: Ce glouton vient de t'apprendre, Qu'il faut rendre Un grand compte après la mort. Fuis de ce richard le vice D'avarice, Donne aux pauvres largement; Fuis les excès de la bouche, Et ne touche A tes mets que sobrement. Fais grand cas de tes misères Salutaires, Ainsi que Lazare a fait...
Durand, Laurent, Cantiques de l'âme dévote (1816)
...écoute s’, 'Prends les route »; ……. -"i^Qui^eondiiisent^à --bon portr • ■§• ■■■'■' Ce glouton vient déU%ip prendre Qtfïil faut rendre *" ■■■' -Un’'-grand to.mpte aprèéslâ-moïK*'.'■" gt;Fuis de ce Richard 1e^vice 1 '■■- ■ - - ^D’avarice ;] ; ■ ?'■'• … Donne aux p ouvres largeojieat-f-^- »- •"- ' &« E E'AME DêrorE, a ? 3' Fuis les excès delà- bouche , \ Et ne touche A-lés’mets ;que sobrement ; Fais grand cas’Se les-misères, Salutaires ,. Ainsi que Lazare a fait...
The ARTFL Project
The Textual Optics Lab
Navigating the alignments
Detecting the alignment is just the first step in the design of an intertextual tool. We designed a web interface that can:
The ARTFL Project
The Textual Optics Lab
Comparing Frantext to French Revolutionary Pamphlets
Reuses of Rousseau's Social Contract in Revolutionary Pamphlets….
The ARTFL Project
The Textual Optics Lab
Highlight additions and deletions in reuses
Reuses of Rousseau's Social Contract in Laurent François, Etudes sur l'histoire de l'humanité (1855)
The ARTFL Project
The Textual Optics Lab
Reuses of Rousseau in 19th cent. France
The ARTFL Project
The Textual Optics Lab
Limitations of the text-reuse approach: very Little Rousseau in Robespierre?
Expected significant borrowings from Rousseau by Robespierre.
Robespierre had a deep affinity for the ideas of Rousseau.
”The popular image persists of Robespierre quoting passages from the Social Contract while simultaneously ordering executions” -- David Williams, 2012
Among all texts we have by Robespierre, primarily speeches and reports… we have only 3 direct reuses of Rousseau
The ARTFL Project
The Textual Optics Lab
Rousseau, Jean-Jacques, Considérations sur le gouvernement de Pologne
Pologne une véritable milice exactement comme elle est établie en Suisse où tout habitant est soldat, mais seulement quand il faut l'être? La servitude établie en Pologne ne permet pas
Tant qu'ils ne sortent pas du lieu de leur demeure, peu ou point détournés de leurs travaux, ils n'ont aucune paye, mais sitot qu'ils marchent en campagne , ils ont le pain de munition et sont à la solde de l'état, et il n'est permis à personne d'envoyer un
Robespierre, Maximilien Discours sur l'organisation des Gardes nationales / ● 1790
et qu’ils n’aient point d’autre force pour combattre les ennemis du dehors, ce Là tout habitant est soldat , mais seulement quand il faut l’être y pour me servir de l’expression de J. J. Rousseau
Tant qu’ils ne sortent point de leurs demeures , -peu ou point détournés de leurs travaux , ils n’ont aucune paie ; mais sitôt qu’ils marchent en campagne ^ ils sont à la odde de l’état.
The ARTFL Project
The Textual Optics Lab
Rousseau, Jean-Jacques, 1712-1778. ● EMILE OU DE L'EDUCATION. TOME SECOND. ●
vengés de leurs tyrans après la mort, n'est-il pas clair que cela mettroit ceux-ci fort à leur aise, & les délivrerait du soin d'apaiser ces malheureux? Il est donc faux que cette doctrine ne fût pas nuisible; elle ne seroit donc pas la vérité.Philosophe, tes lois morales sont fort belles; mais montre-m'en, de grâce, la sanction. Cesse un moment de battre la campagne, & dis-moi nettement ce que tu mets à la place du Poul-Serrho.] Bon jeune homme, soyez sincère & vrai. sans orgueil; sachez être ignorant: vous ne tromperez ni vous ni les autres. Si jamais vos talents cultivés vous mettent en état de parler aux hommes, ne leur parlez jamais que selon
Robespierre, Maximilien, 1758-1794 ● Oeuvres complètes, Volume 08 ● 1910
En Morale... Notre divine Constitution a bien détruit tous les ancienis abus auxquels elle a pu atteindre : mais elle a élevé un monument à J.J. Roustseau ; or, ce Moraliste nous a dit en termes précis, lorsqu'il a parlé du fameux pont de Pontu Sérou des Indiens: « Philosophe, tes loix morales sont fort belles ; mais de g'race montre m'en la sanction, et dis-moi nettement ce que tu mets à la place de ce pont... •» Rousseau pensoit donc comme mon ami, qu'aucune institution humaine, qu'aucun moyen national, ni bayonnettes, ni canons, ni décrets, ni motions, ne sanctionnoient suMsamment la morale du peuple,
Points to limits of direct reuse approach...
The ARTFL Project
The Textual Optics Lab
Allusion detection… is it feasible?
Given the limitations of the text-reuse approach, would it be possible to devise a method that could answer the following question: where is Rousseau in Robespierre?
Much work has been done on discourse analysis:
Our approach is far more naïve, but also meant to be more intuitive:
The ARTFL Project
The Textual Optics Lab
Rousseau, Du contrat social Robespierre (June 16 1793)
The ARTFL Project
The Textual Optics Lab
Rousseau, Du contrat social Robespierre (June 16 1793)
The ARTFL Project
The Textual Optics Lab
The Intertextual Hub: text-reuse and discourse analysis
Goal: build a platform to understand how ideas circulate within a cultural system:
Hub is built around a series of text collections with their own internal organisation:
All collections are connected to one another through:
The ARTFL Project
The Textual Optics Lab
Topic Modeling as a discourse analysis tool
Preliminary assumption : each text is a combination of several topics.
Built by analysing word co-occurrences across an entire corpus.
Results in:
Topic-modeling as an intertextual tool: explore shared topics across many thousands of texts
The ARTFL Project
The Textual Optics Lab
Topic Modeling as a discourse analysis tool
The ARTFL Project
The Textual Optics Lab
Topic Modeling as a discourse analysis tool
The ARTFL Project
The Textual Optics Lab
Topic Modeling as a discourse analysis tool
The ARTFL Project
The Textual Optics Lab
Topic Modeling as a discourse analysis tool
Searching for "religion, culte, prêtre, église, dieu, fanatisme, moral, autel, clergé, divinité" in 7,500 18th cent. texts
The ARTFL Project
The Textual Optics Lab
Directed reading in close-reading: highlight reuses in text
Better understand how a text came to be: example of the anonymous pamphlet Le Pot au noir from 1788.
The virulent anticlerical has led some scholars to attribute it to d'Holbach
Others have wondered about the Voltairian tone of the work.
The ARTFL Project
The Textual Optics Lab
Future directions
We are continuously working on providing access to new resources through the continued development of new digital collections.
We are exploring new ways of navigating the hundreds of thousands of texts that we give access to through the:
The ARTFL Project
The Textual Optics Lab
Thank you!
The ARTFL Project
The Textual Optics Lab