This little repository offers data and code accompanying the 5th and 6th blog post in the series From rhymes to networks.
The data is taken from the AntRhyme database. For copy-right reasons, all non-rhyming words have been replaced by dummy symbols.
Since the dataset is still being curated for the time being, I would ask you to contact me before using the data, since I have annotated them myself. In any case, you should cite both the blog post which will appear in August, and also the AntRhyme database as well as the RhyAnt annotation tool:
List, Johann-Mattis (2020): AntRhyme: Annothated Rhyme Database. Version 0.1. Jena: Max Planck Institute for the Science of Human History. https://digling.org/rhyant/
List, Johann-Mattis (2020): RhyAnT: A tool for interactive rhyme annotation. Version 0.1. Jena: Max Planck Institue for the Science of Human History. URL: https://digling.org/calc/rhyant/
- networkx
- tabulate
- lingpy
- python-igraph
To run the code for the fifth blogpost, just type:
$ python code-1.py
To inspect the networks, just take the file edges.tsv
and load it into Cytoscape.
Output (visible) is:
|:--------------|------:|
| components | 996 |
| authors | 72 |
| poems | 336 |
| stanzas | 1544 |
| lines | 8340 |
| rhyme words | 3950 |
| words rhyming | 5431 |
| words total | 49797 |
To run the code for the sixth blgopost, just type:
$ python code-2.py
The results are stored in diredges.tsv
and dirnodes.tsv
and can accordingly be loaded into Cytoscape.
Output is (this can differ, due to the igraph
algorithms, since no seed was used):
# 1 Basic statistics
|:--------------|------:|
| components | 840 |
| authors | 72 |
| poems | 336 |
| stanzas | 1544 |
| lines | 8340 |
| rhyme words | 3104 |
| words rhyming | 7707 |
| words total | 49797 |
| communities | 931 |
# 2 Promiscuous Rhymes
| rhyme word | links | occurrences |
|:-------------|--------:|--------------:|
| singen | 6 | 9 |
| wind | 6 | 12 |
| rein | 6 | 17 |
| frei | 6 | 18 |
| haus | 7 | 45 |
| nacht | 7 | 40 |
| an | 7 | 29 |
| auch | 7 | 16 |
| zieht | 7 | 11 |
| schon | 7 | 12 |
| welt | 7 | 32 |
| sagen | 8 | 19 |
| leben | 8 | 39 |
| schein | 8 | 26 |
| mehr | 8 | 25 |
| nicht | 8 | 32 |
| zeit | 8 | 36 |
| ein | 9 | 34 |
| bei | 9 | 36 |
| sein | 14 | 87 |
# 3 Frequent Edges
| rhyme word A | rhyme word B | occurrences |
|:---------------|:---------------|--------------:|
| sein | lein | 10 |
| aus | haus | 10 |
| haus | aus | 9 |
| triebe | liebe | 9 |
| leben | geben | 9 |
| geben | leben | 9 |
| zeit | keit | 9 |
| nein | sein | 8 |
| wieder | lieder | 7 |
| nur | tur | 7 |
| nommen | kommen | 7 |
| nacht | wacht | 6 |
| glück | rück | 6 |
| licht | nicht | 6 |
| lein | sein | 6 |
| lauf | auf | 6 |
| klein | sein | 6 |
| schmerz | herz | 6 |
| raus | haus | 5 |
| nacht | macht | 5 |