This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
{- | |
Copyright (C) 2006-2015 John MacFarlane <[email protected]> | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year | totalWorks | male | female | undetected | namemissing | |
---|---|---|---|---|---|---|
1770 | 8 | 4 | 0 | 4 | 0 | |
1771 | 9 | 4 | 1 | 3 | 1 | |
1772 | 5 | 2 | 1 | 2 | 0 | |
1773 | 2 | 1 | 0 | 1 | 0 | |
1774 | 12 | 5 | 0 | 5 | 2 | |
1775 | 6 | 4 | 0 | 1 | 1 | |
1776 | 4 | 0 | 0 | 3 | 1 | |
1777 | 11 | 3 | 2 | 2 | 4 | |
1778 | 5 | 2 | 1 | 1 | 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Extract and summarize the gender breakdown for data comparable to | |
# that reported by Raven et al in *The English Novel 1770-1829: A | |
# Bibliographical Survey of Prose Fiction Published in the British Isles* | |
# As a practical matter, this means: | |
# - works published between 1770 and 1830 | |
# - published in England or Scotland or Ireland | |
# - individual works (remove duplicates, and count multivol works only once) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year | missing | undetected | men | women | norm.missing | norm.undetected | norm.men | norm.women | |
---|---|---|---|---|---|---|---|---|---|
1704 | 1 | 0 | 0 | 0 | 1.0 | 0.0 | 0.0 | 0.0 | |
1705 | 0 | 1 | 0 | 0 | 0.0 | 1.0 | 0.0 | 0.0 | |
1706 | 0 | 0 | 1 | 0 | 0.0 | 0.0 | 1.0 | 0.0 | |
1709 | 0 | 1 | 0 | 0 | 0.0 | 1.0 | 0.0 | 0.0 | |
1710 | 0 | 1 | 0 | 0 | 0.0 | 1.0 | 0.0 | 0.0 | |
1713 | 1 | 0 | 1 | 0 | 0.5 | 0.0 | 0.5 | 0.0 | |
1714 | 0 | 1 | 2 | 0 | 0.0 | 0.3333333333333333 | 0.6666666666666666 | 0.0 | |
1715 | 0 | 1 | 1 | 0 | 0.0 | 0.5 | 0.5 | 0.0 | |
1716 | 0 | 2 | 2 | 0 | 0.0 | 0.5 | 0.5 | 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pandocfilters import toJSONFilter, RawInline, Para, Space, walk | |
def latex(s): | |
return RawInline('latex', s) | |
def html(s): | |
return RawInline('html', s) | |
def deindentParas(key, value, format, meta): |