Reading a text file into a string


In [57]:
with open('wi_sb179.txt') as f:
    memo = f.read()

In [58]:
print(memo)


 This bill prohibits the performance of an abortion, except in a medical
emergency, unless the physician performing or inducing the abortion has made a
determination of the probable postfertilization age of the unborn child or has relied
upon another physician's determination of postfertilization age. The bill prohibits
any person from performing or inducing, or attempting to perform or induce, an
abortion when the unborn child is considered to be capable of experiencing pain,
unless the woman is undergoing a medical emergency. Under the bill, the unborn
child is capable of experiencing pain if the probable postfertilization age of the
unborn child is 20 or more weeks. When the unborn child is considered capable of
experiencing pain and the pregnant woman is undergoing a medical emergency, the
bill requires the physician to terminate the pregnancy in the manner that, in
reasonable medical judgment, provides the best opportunity for the unborn child to
survive. The bill allows the woman on whom the abortion was performed or
attempted, and the father of the unborn child, unless the pregnancy is the result of
sexual assault or incest, to bring a claim for damages against a person who violates
these limitations and requirements. A prosecuting attorney may also bring an action
for injunctive relief for intentional or reckless violations of the limitations and
requirements. Any person who violates the prohibition against performing,
inducing, or attempting to perform or induce an abortion when the unborn child is
capable of experiencing pain is guilty of a felony subject to a fine not to exceed
$10,000, imprisonment not to exceed three years and six months, or both.
Under current law, annually, each hospital, clinic, or other facility in which an
induced abortion is performed must file with DHS a report for each induced abortion
performed in the calendar year. The report must contain for each patient the state,
and county if Wisconsin, of residence; patient number; race; age; marital status;
month and year in which the abortion was performed; education; number of weeks
since patient's last menstrual period; whether the abortion was chemically or
surgically induced or surgically induced following a failed chemical abortion; and
any resulting complications. If the patient is a minor, the report must contain
whether consent for the abortion was provided and by whom; and, if consent was not
provided, on which basis the abortion was performed. Under current law, DHS is
required to collect the reported information in a manner that ensures anonymity of
the patient who obtained the abortion, the health care provider who performed the
abortion, and the facility in which the abortion was performed. Under current law,
DHS is required to publish annual demographic summaries of the reported
information except what reveals the identity of a patient, provider, or facility.
The bill requires the hospital, clinic, or other facility to report the probable
postfertilization age of the unborn child and whether ultrasound was used to assist
in that determination of postfertilization age; or, if the probable postfertilization age
of the unborn child was not determined, the nature of the medical emergency. If the
unborn child is considered capable of experiencing pain, the bill requires reporting
of the nature of the pregnant woman's medical emergency and a statement of
whether the method of abortion used was one that provided the best opportunity for
the unborn child's survival.
Under current law, a woman upon whom an abortion is to be performed or
induced must give voluntary and informed written consent to an abortion. Except
in a medical emergency, a woman's consent to an abortion is considered informed
only if, at least 24 hours before the abortion is performed or induced, the physician
or an assistant has, in person, orally provided the woman with certain information
and given to the woman certain written materials. If the pregnancy is the result of
sexual assault or incest, the 24-hour period, but not the provision of information,
may be waived or reduced under certain circumstances. In addition to the current
requirement to inform the woman, orally and in writing, of the probable gestational
age, the bill requires that the woman be informed, orally and in writing, of the
probable postfertilization age of the unborn child and the numerical odds of survival
for an unborn child delivered at that probable postfertilization age. The bill also
requires that the woman be orally informed of and provided written materials on the
availability of perinatal hospice. 













Splitting a string into an array


In [59]:
terms = memo.split(' ')
terms


Out[59]:
['',
 'This',
 'bill',
 'prohibits',
 'the',
 'performance',
 'of',
 'an',
 'abortion,',
 'except',
 'in',
 'a',
 'medical\nemergency,',
 'unless',
 'the',
 'physician',
 'performing',
 'or',
 'inducing',
 'the',
 'abortion',
 'has',
 'made',
 'a\ndetermination',
 'of',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'or',
 'has',
 'relied\nupon',
 'another',
 "physician's",
 'determination',
 'of',
 'postfertilization',
 'age.',
 'The',
 'bill',
 'prohibits\nany',
 'person',
 'from',
 'performing',
 'or',
 'inducing,',
 'or',
 'attempting',
 'to',
 'perform',
 'or',
 'induce,',
 'an\nabortion',
 'when',
 'the',
 'unborn',
 'child',
 'is',
 'considered',
 'to',
 'be',
 'capable',
 'of',
 'experiencing',
 'pain,\nunless',
 'the',
 'woman',
 'is',
 'undergoing',
 'a',
 'medical',
 'emergency.',
 'Under',
 'the',
 'bill,',
 'the',
 'unborn\nchild',
 'is',
 'capable',
 'of',
 'experiencing',
 'pain',
 'if',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the\nunborn',
 'child',
 'is',
 '20',
 'or',
 'more',
 'weeks.',
 'When',
 'the',
 'unborn',
 'child',
 'is',
 'considered',
 'capable',
 'of\nexperiencing',
 'pain',
 'and',
 'the',
 'pregnant',
 'woman',
 'is',
 'undergoing',
 'a',
 'medical',
 'emergency,',
 'the\nbill',
 'requires',
 'the',
 'physician',
 'to',
 'terminate',
 'the',
 'pregnancy',
 'in',
 'the',
 'manner',
 'that,',
 'in\nreasonable',
 'medical',
 'judgment,',
 'provides',
 'the',
 'best',
 'opportunity',
 'for',
 'the',
 'unborn',
 'child',
 'to\nsurvive.',
 'The',
 'bill',
 'allows',
 'the',
 'woman',
 'on',
 'whom',
 'the',
 'abortion',
 'was',
 'performed',
 'or\nattempted,',
 'and',
 'the',
 'father',
 'of',
 'the',
 'unborn',
 'child,',
 'unless',
 'the',
 'pregnancy',
 'is',
 'the',
 'result',
 'of\nsexual',
 'assault',
 'or',
 'incest,',
 'to',
 'bring',
 'a',
 'claim',
 'for',
 'damages',
 'against',
 'a',
 'person',
 'who',
 'violates\nthese',
 'limitations',
 'and',
 'requirements.',
 'A',
 'prosecuting',
 'attorney',
 'may',
 'also',
 'bring',
 'an',
 'action\nfor',
 'injunctive',
 'relief',
 'for',
 'intentional',
 'or',
 'reckless',
 'violations',
 'of',
 'the',
 'limitations',
 'and\nrequirements.',
 'Any',
 'person',
 'who',
 'violates',
 'the',
 'prohibition',
 'against',
 'performing,\ninducing,',
 'or',
 'attempting',
 'to',
 'perform',
 'or',
 'induce',
 'an',
 'abortion',
 'when',
 'the',
 'unborn',
 'child',
 'is\ncapable',
 'of',
 'experiencing',
 'pain',
 'is',
 'guilty',
 'of',
 'a',
 'felony',
 'subject',
 'to',
 'a',
 'fine',
 'not',
 'to',
 'exceed\n$10,000,',
 'imprisonment',
 'not',
 'to',
 'exceed',
 'three',
 'years',
 'and',
 'six',
 'months,',
 'or',
 'both.\nUnder',
 'current',
 'law,',
 'annually,',
 'each',
 'hospital,',
 'clinic,',
 'or',
 'other',
 'facility',
 'in',
 'which',
 'an\ninduced',
 'abortion',
 'is',
 'performed',
 'must',
 'file',
 'with',
 'DHS',
 'a',
 'report',
 'for',
 'each',
 'induced',
 'abortion\nperformed',
 'in',
 'the',
 'calendar',
 'year.',
 'The',
 'report',
 'must',
 'contain',
 'for',
 'each',
 'patient',
 'the',
 'state,\nand',
 'county',
 'if',
 'Wisconsin,',
 'of',
 'residence;',
 'patient',
 'number;',
 'race;',
 'age;',
 'marital',
 'status;\nmonth',
 'and',
 'year',
 'in',
 'which',
 'the',
 'abortion',
 'was',
 'performed;',
 'education;',
 'number',
 'of',
 'weeks\nsince',
 "patient's",
 'last',
 'menstrual',
 'period;',
 'whether',
 'the',
 'abortion',
 'was',
 'chemically',
 'or\nsurgically',
 'induced',
 'or',
 'surgically',
 'induced',
 'following',
 'a',
 'failed',
 'chemical',
 'abortion;',
 'and\nany',
 'resulting',
 'complications.',
 'If',
 'the',
 'patient',
 'is',
 'a',
 'minor,',
 'the',
 'report',
 'must',
 'contain\nwhether',
 'consent',
 'for',
 'the',
 'abortion',
 'was',
 'provided',
 'and',
 'by',
 'whom;',
 'and,',
 'if',
 'consent',
 'was',
 'not\nprovided,',
 'on',
 'which',
 'basis',
 'the',
 'abortion',
 'was',
 'performed.',
 'Under',
 'current',
 'law,',
 'DHS',
 'is\nrequired',
 'to',
 'collect',
 'the',
 'reported',
 'information',
 'in',
 'a',
 'manner',
 'that',
 'ensures',
 'anonymity',
 'of\nthe',
 'patient',
 'who',
 'obtained',
 'the',
 'abortion,',
 'the',
 'health',
 'care',
 'provider',
 'who',
 'performed',
 'the\nabortion,',
 'and',
 'the',
 'facility',
 'in',
 'which',
 'the',
 'abortion',
 'was',
 'performed.',
 'Under',
 'current',
 'law,\nDHS',
 'is',
 'required',
 'to',
 'publish',
 'annual',
 'demographic',
 'summaries',
 'of',
 'the',
 'reported\ninformation',
 'except',
 'what',
 'reveals',
 'the',
 'identity',
 'of',
 'a',
 'patient,',
 'provider,',
 'or',
 'facility.\nThe',
 'bill',
 'requires',
 'the',
 'hospital,',
 'clinic,',
 'or',
 'other',
 'facility',
 'to',
 'report',
 'the',
 'probable\npostfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'and',
 'whether',
 'ultrasound',
 'was',
 'used',
 'to',
 'assist\nin',
 'that',
 'determination',
 'of',
 'postfertilization',
 'age;',
 'or,',
 'if',
 'the',
 'probable',
 'postfertilization',
 'age\nof',
 'the',
 'unborn',
 'child',
 'was',
 'not',
 'determined,',
 'the',
 'nature',
 'of',
 'the',
 'medical',
 'emergency.',
 'If',
 'the\nunborn',
 'child',
 'is',
 'considered',
 'capable',
 'of',
 'experiencing',
 'pain,',
 'the',
 'bill',
 'requires',
 'reporting\nof',
 'the',
 'nature',
 'of',
 'the',
 'pregnant',
 "woman's",
 'medical',
 'emergency',
 'and',
 'a',
 'statement',
 'of\nwhether',
 'the',
 'method',
 'of',
 'abortion',
 'used',
 'was',
 'one',
 'that',
 'provided',
 'the',
 'best',
 'opportunity',
 'for\nthe',
 'unborn',
 "child's",
 'survival.\nUnder',
 'current',
 'law,',
 'a',
 'woman',
 'upon',
 'whom',
 'an',
 'abortion',
 'is',
 'to',
 'be',
 'performed',
 'or\ninduced',
 'must',
 'give',
 'voluntary',
 'and',
 'informed',
 'written',
 'consent',
 'to',
 'an',
 'abortion.',
 'Except\nin',
 'a',
 'medical',
 'emergency,',
 'a',
 "woman's",
 'consent',
 'to',
 'an',
 'abortion',
 'is',
 'considered',
 'informed\nonly',
 'if,',
 'at',
 'least',
 '24',
 'hours',
 'before',
 'the',
 'abortion',
 'is',
 'performed',
 'or',
 'induced,',
 'the',
 'physician\nor',
 'an',
 'assistant',
 'has,',
 'in',
 'person,',
 'orally',
 'provided',
 'the',
 'woman',
 'with',
 'certain',
 'information\nand',
 'given',
 'to',
 'the',
 'woman',
 'certain',
 'written',
 'materials.',
 'If',
 'the',
 'pregnancy',
 'is',
 'the',
 'result',
 'of\nsexual',
 'assault',
 'or',
 'incest,',
 'the',
 '24-hour',
 'period,',
 'but',
 'not',
 'the',
 'provision',
 'of',
 'information,\nmay',
 'be',
 'waived',
 'or',
 'reduced',
 'under',
 'certain',
 'circumstances.',
 'In',
 'addition',
 'to',
 'the',
 'current\nrequirement',
 'to',
 'inform',
 'the',
 'woman,',
 'orally',
 'and',
 'in',
 'writing,',
 'of',
 'the',
 'probable',
 'gestational\nage,',
 'the',
 'bill',
 'requires',
 'that',
 'the',
 'woman',
 'be',
 'informed,',
 'orally',
 'and',
 'in',
 'writing,',
 'of',
 'the\nprobable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'and',
 'the',
 'numerical',
 'odds',
 'of',
 'survival\nfor',
 'an',
 'unborn',
 'child',
 'delivered',
 'at',
 'that',
 'probable',
 'postfertilization',
 'age.',
 'The',
 'bill',
 'also\nrequires',
 'that',
 'the',
 'woman',
 'be',
 'orally',
 'informed',
 'of',
 'and',
 'provided',
 'written',
 'materials',
 'on',
 'the\navailability',
 'of',
 'perinatal',
 'hospice.',
 '\n']













Term frequencies


In [60]:
tf = {}
for term in terms:
    if term not in tf:
        tf[term] = 1
    else:
        tf[term] = tf[term] + 1

In [61]:
tf


Out[61]:
{'': 1,
 '\n': 1,
 '20': 1,
 '24': 1,
 '24-hour': 1,
 'A': 1,
 'Any': 1,
 'DHS': 2,
 'Except\nin': 1,
 'If': 3,
 'In': 1,
 'The': 4,
 'This': 1,
 'Under': 3,
 'When': 1,
 'Wisconsin,': 1,
 'a': 16,
 'a\ndetermination': 1,
 'abortion': 13,
 'abortion\nperformed': 1,
 'abortion,': 2,
 'abortion.': 1,
 'abortion;': 1,
 'action\nfor': 1,
 'addition': 1,
 'against': 2,
 'age': 4,
 'age\nof': 1,
 'age.': 2,
 'age;': 2,
 'allows': 1,
 'also': 1,
 'also\nrequires': 1,
 'an': 8,
 'an\nabortion': 1,
 'an\ninduced': 1,
 'and': 14,
 'and\nany': 1,
 'and\nrequirements.': 1,
 'and,': 1,
 'annual': 1,
 'annually,': 1,
 'anonymity': 1,
 'another': 1,
 'assault': 2,
 'assist\nin': 1,
 'assistant': 1,
 'at': 2,
 'attempting': 2,
 'attorney': 1,
 'basis': 1,
 'be': 5,
 'before': 1,
 'best': 2,
 'bill': 7,
 'bill,': 1,
 'both.\nUnder': 1,
 'bring': 2,
 'but': 1,
 'by': 1,
 'calendar': 1,
 'capable': 4,
 'care': 1,
 'certain': 3,
 'chemical': 1,
 'chemically': 1,
 'child': 11,
 "child's": 1,
 'child,': 1,
 'circumstances.': 1,
 'claim': 1,
 'clinic,': 2,
 'collect': 1,
 'complications.': 1,
 'consent': 4,
 'considered': 4,
 'contain': 1,
 'contain\nwhether': 1,
 'county': 1,
 'current': 4,
 'current\nrequirement': 1,
 'damages': 1,
 'delivered': 1,
 'demographic': 1,
 'determination': 2,
 'determined,': 1,
 'each': 3,
 'education;': 1,
 'emergency': 1,
 'emergency,': 2,
 'emergency.': 2,
 'ensures': 1,
 'exceed': 1,
 'exceed\n$10,000,': 1,
 'except': 2,
 'experiencing': 4,
 'facility': 3,
 'facility.\nThe': 1,
 'failed': 1,
 'father': 1,
 'felony': 1,
 'file': 1,
 'fine': 1,
 'following': 1,
 'for': 6,
 'for\nthe': 1,
 'from': 1,
 'gestational\nage,': 1,
 'give': 1,
 'given': 1,
 'guilty': 1,
 'has': 2,
 'has,': 1,
 'health': 1,
 'hospice.': 1,
 'hospital,': 2,
 'hours': 1,
 'identity': 1,
 'if': 4,
 'if,': 1,
 'imprisonment': 1,
 'in': 10,
 'in\nreasonable': 1,
 'incest,': 2,
 'induce': 1,
 'induce,': 1,
 'induced': 3,
 'induced,': 1,
 'inducing': 1,
 'inducing,': 1,
 'inform': 1,
 'information': 1,
 'information\nand': 1,
 'information,\nmay': 1,
 'informed': 2,
 'informed\nonly': 1,
 'informed,': 1,
 'injunctive': 1,
 'intentional': 1,
 'is': 16,
 'is\ncapable': 1,
 'is\nrequired': 1,
 'judgment,': 1,
 'last': 1,
 'law,': 3,
 'law,\nDHS': 1,
 'least': 1,
 'limitations': 2,
 'made': 1,
 'manner': 2,
 'marital': 1,
 'materials': 1,
 'materials.': 1,
 'may': 1,
 'medical': 6,
 'medical\nemergency,': 1,
 'menstrual': 1,
 'method': 1,
 'minor,': 1,
 'months,': 1,
 'more': 1,
 'must': 4,
 'nature': 2,
 'not': 4,
 'not\nprovided,': 1,
 'number': 1,
 'number;': 1,
 'numerical': 1,
 'obtained': 1,
 'odds': 1,
 'of': 28,
 'of\nexperiencing': 1,
 'of\nsexual': 2,
 'of\nthe': 1,
 'of\nwhether': 1,
 'on': 3,
 'one': 1,
 'opportunity': 2,
 'or': 18,
 'or\nattempted,': 1,
 'or\ninduced': 1,
 'or\nsurgically': 1,
 'or,': 1,
 'orally': 4,
 'other': 2,
 'pain': 3,
 'pain,': 1,
 'pain,\nunless': 1,
 'patient': 4,
 "patient's": 1,
 'patient,': 1,
 'perform': 2,
 'performance': 1,
 'performed': 5,
 'performed.': 2,
 'performed;': 1,
 'performing': 2,
 'performing,\ninducing,': 1,
 'perinatal': 1,
 'period,': 1,
 'period;': 1,
 'person': 3,
 'person,': 1,
 'physician': 2,
 'physician\nor': 1,
 "physician's": 1,
 'postfertilization': 7,
 'pregnancy': 3,
 'pregnant': 2,
 'probable': 5,
 'probable\npostfertilization': 1,
 'prohibition': 1,
 'prohibits': 1,
 'prohibits\nany': 1,
 'prosecuting': 1,
 'provided': 4,
 'provider': 1,
 'provider,': 1,
 'provides': 1,
 'provision': 1,
 'publish': 1,
 'race;': 1,
 'reckless': 1,
 'reduced': 1,
 'relied\nupon': 1,
 'relief': 1,
 'report': 4,
 'reported': 1,
 'reported\ninformation': 1,
 'reporting\nof': 1,
 'required': 1,
 'requirements.': 1,
 'requires': 4,
 'residence;': 1,
 'result': 2,
 'resulting': 1,
 'reveals': 1,
 'six': 1,
 'state,\nand': 1,
 'statement': 1,
 'status;\nmonth': 1,
 'subject': 1,
 'summaries': 1,
 'surgically': 1,
 'survival\nfor': 1,
 'survival.\nUnder': 1,
 'terminate': 1,
 'that': 6,
 'that,': 1,
 'the': 69,
 'the\nabortion,': 1,
 'the\navailability': 1,
 'the\nbill': 1,
 'the\nprobable': 1,
 'the\nunborn': 2,
 'three': 1,
 'to': 18,
 'to\nsurvive.': 1,
 'ultrasound': 1,
 'unborn': 11,
 'unborn\nchild': 1,
 'under': 1,
 'undergoing': 2,
 'unless': 2,
 'upon': 1,
 'used': 2,
 'violates': 1,
 'violates\nthese': 1,
 'violations': 1,
 'voluntary': 1,
 'waived': 1,
 'was': 10,
 'weeks\nsince': 1,
 'weeks.': 1,
 'what': 1,
 'when': 2,
 'whether': 2,
 'which': 4,
 'who': 4,
 'whom': 2,
 'whom;': 1,
 'with': 2,
 'woman': 8,
 "woman's": 2,
 'woman,': 1,
 'writing,': 2,
 'written': 3,
 'year': 1,
 'year.': 1,
 'years': 1}











Make everything lower case


In [62]:
memo_lower = memo.lower()
print(memo_lower)


 this bill prohibits the performance of an abortion, except in a medical
emergency, unless the physician performing or inducing the abortion has made a
determination of the probable postfertilization age of the unborn child or has relied
upon another physician's determination of postfertilization age. the bill prohibits
any person from performing or inducing, or attempting to perform or induce, an
abortion when the unborn child is considered to be capable of experiencing pain,
unless the woman is undergoing a medical emergency. under the bill, the unborn
child is capable of experiencing pain if the probable postfertilization age of the
unborn child is 20 or more weeks. when the unborn child is considered capable of
experiencing pain and the pregnant woman is undergoing a medical emergency, the
bill requires the physician to terminate the pregnancy in the manner that, in
reasonable medical judgment, provides the best opportunity for the unborn child to
survive. the bill allows the woman on whom the abortion was performed or
attempted, and the father of the unborn child, unless the pregnancy is the result of
sexual assault or incest, to bring a claim for damages against a person who violates
these limitations and requirements. a prosecuting attorney may also bring an action
for injunctive relief for intentional or reckless violations of the limitations and
requirements. any person who violates the prohibition against performing,
inducing, or attempting to perform or induce an abortion when the unborn child is
capable of experiencing pain is guilty of a felony subject to a fine not to exceed
$10,000, imprisonment not to exceed three years and six months, or both.
under current law, annually, each hospital, clinic, or other facility in which an
induced abortion is performed must file with dhs a report for each induced abortion
performed in the calendar year. the report must contain for each patient the state,
and county if wisconsin, of residence; patient number; race; age; marital status;
month and year in which the abortion was performed; education; number of weeks
since patient's last menstrual period; whether the abortion was chemically or
surgically induced or surgically induced following a failed chemical abortion; and
any resulting complications. if the patient is a minor, the report must contain
whether consent for the abortion was provided and by whom; and, if consent was not
provided, on which basis the abortion was performed. under current law, dhs is
required to collect the reported information in a manner that ensures anonymity of
the patient who obtained the abortion, the health care provider who performed the
abortion, and the facility in which the abortion was performed. under current law,
dhs is required to publish annual demographic summaries of the reported
information except what reveals the identity of a patient, provider, or facility.
the bill requires the hospital, clinic, or other facility to report the probable
postfertilization age of the unborn child and whether ultrasound was used to assist
in that determination of postfertilization age; or, if the probable postfertilization age
of the unborn child was not determined, the nature of the medical emergency. if the
unborn child is considered capable of experiencing pain, the bill requires reporting
of the nature of the pregnant woman's medical emergency and a statement of
whether the method of abortion used was one that provided the best opportunity for
the unborn child's survival.
under current law, a woman upon whom an abortion is to be performed or
induced must give voluntary and informed written consent to an abortion. except
in a medical emergency, a woman's consent to an abortion is considered informed
only if, at least 24 hours before the abortion is performed or induced, the physician
or an assistant has, in person, orally provided the woman with certain information
and given to the woman certain written materials. if the pregnancy is the result of
sexual assault or incest, the 24-hour period, but not the provision of information,
may be waived or reduced under certain circumstances. in addition to the current
requirement to inform the woman, orally and in writing, of the probable gestational
age, the bill requires that the woman be informed, orally and in writing, of the
probable postfertilization age of the unborn child and the numerical odds of survival
for an unborn child delivered at that probable postfertilization age. the bill also
requires that the woman be orally informed of and provided written materials on the
availability of perinatal hospice. 













Remove Punctuation


In [77]:
string.punctuation


Out[77]:
'!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'

In [63]:
import string
memo_lower_nopunctuation = memo_lower.translate(None, string.punctuation)
print(memo_lower_nopunctuation)


 this bill prohibits the performance of an abortion except in a medical
emergency unless the physician performing or inducing the abortion has made a
determination of the probable postfertilization age of the unborn child or has relied
upon another physicians determination of postfertilization age the bill prohibits
any person from performing or inducing or attempting to perform or induce an
abortion when the unborn child is considered to be capable of experiencing pain
unless the woman is undergoing a medical emergency under the bill the unborn
child is capable of experiencing pain if the probable postfertilization age of the
unborn child is 20 or more weeks when the unborn child is considered capable of
experiencing pain and the pregnant woman is undergoing a medical emergency the
bill requires the physician to terminate the pregnancy in the manner that in
reasonable medical judgment provides the best opportunity for the unborn child to
survive the bill allows the woman on whom the abortion was performed or
attempted and the father of the unborn child unless the pregnancy is the result of
sexual assault or incest to bring a claim for damages against a person who violates
these limitations and requirements a prosecuting attorney may also bring an action
for injunctive relief for intentional or reckless violations of the limitations and
requirements any person who violates the prohibition against performing
inducing or attempting to perform or induce an abortion when the unborn child is
capable of experiencing pain is guilty of a felony subject to a fine not to exceed
10000 imprisonment not to exceed three years and six months or both
under current law annually each hospital clinic or other facility in which an
induced abortion is performed must file with dhs a report for each induced abortion
performed in the calendar year the report must contain for each patient the state
and county if wisconsin of residence patient number race age marital status
month and year in which the abortion was performed education number of weeks
since patients last menstrual period whether the abortion was chemically or
surgically induced or surgically induced following a failed chemical abortion and
any resulting complications if the patient is a minor the report must contain
whether consent for the abortion was provided and by whom and if consent was not
provided on which basis the abortion was performed under current law dhs is
required to collect the reported information in a manner that ensures anonymity of
the patient who obtained the abortion the health care provider who performed the
abortion and the facility in which the abortion was performed under current law
dhs is required to publish annual demographic summaries of the reported
information except what reveals the identity of a patient provider or facility
the bill requires the hospital clinic or other facility to report the probable
postfertilization age of the unborn child and whether ultrasound was used to assist
in that determination of postfertilization age or if the probable postfertilization age
of the unborn child was not determined the nature of the medical emergency if the
unborn child is considered capable of experiencing pain the bill requires reporting
of the nature of the pregnant womans medical emergency and a statement of
whether the method of abortion used was one that provided the best opportunity for
the unborn childs survival
under current law a woman upon whom an abortion is to be performed or
induced must give voluntary and informed written consent to an abortion except
in a medical emergency a womans consent to an abortion is considered informed
only if at least 24 hours before the abortion is performed or induced the physician
or an assistant has in person orally provided the woman with certain information
and given to the woman certain written materials if the pregnancy is the result of
sexual assault or incest the 24hour period but not the provision of information
may be waived or reduced under certain circumstances in addition to the current
requirement to inform the woman orally and in writing of the probable gestational
age the bill requires that the woman be informed orally and in writing of the
probable postfertilization age of the unborn child and the numerical odds of survival
for an unborn child delivered at that probable postfertilization age the bill also
requires that the woman be orally informed of and provided written materials on the
availability of perinatal hospice 















Use NLTK to tokenize


In [64]:
import nltk
tokens = nltk.word_tokenize(memo_lower_nopunctuation)
tokens


Out[64]:
['this',
 'bill',
 'prohibits',
 'the',
 'performance',
 'of',
 'an',
 'abortion',
 'except',
 'in',
 'a',
 'medical',
 'emergency',
 'unless',
 'the',
 'physician',
 'performing',
 'or',
 'inducing',
 'the',
 'abortion',
 'has',
 'made',
 'a',
 'determination',
 'of',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'or',
 'has',
 'relied',
 'upon',
 'another',
 'physicians',
 'determination',
 'of',
 'postfertilization',
 'age',
 'the',
 'bill',
 'prohibits',
 'any',
 'person',
 'from',
 'performing',
 'or',
 'inducing',
 'or',
 'attempting',
 'to',
 'perform',
 'or',
 'induce',
 'an',
 'abortion',
 'when',
 'the',
 'unborn',
 'child',
 'is',
 'considered',
 'to',
 'be',
 'capable',
 'of',
 'experiencing',
 'pain',
 'unless',
 'the',
 'woman',
 'is',
 'undergoing',
 'a',
 'medical',
 'emergency',
 'under',
 'the',
 'bill',
 'the',
 'unborn',
 'child',
 'is',
 'capable',
 'of',
 'experiencing',
 'pain',
 'if',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'is',
 '20',
 'or',
 'more',
 'weeks',
 'when',
 'the',
 'unborn',
 'child',
 'is',
 'considered',
 'capable',
 'of',
 'experiencing',
 'pain',
 'and',
 'the',
 'pregnant',
 'woman',
 'is',
 'undergoing',
 'a',
 'medical',
 'emergency',
 'the',
 'bill',
 'requires',
 'the',
 'physician',
 'to',
 'terminate',
 'the',
 'pregnancy',
 'in',
 'the',
 'manner',
 'that',
 'in',
 'reasonable',
 'medical',
 'judgment',
 'provides',
 'the',
 'best',
 'opportunity',
 'for',
 'the',
 'unborn',
 'child',
 'to',
 'survive',
 'the',
 'bill',
 'allows',
 'the',
 'woman',
 'on',
 'whom',
 'the',
 'abortion',
 'was',
 'performed',
 'or',
 'attempted',
 'and',
 'the',
 'father',
 'of',
 'the',
 'unborn',
 'child',
 'unless',
 'the',
 'pregnancy',
 'is',
 'the',
 'result',
 'of',
 'sexual',
 'assault',
 'or',
 'incest',
 'to',
 'bring',
 'a',
 'claim',
 'for',
 'damages',
 'against',
 'a',
 'person',
 'who',
 'violates',
 'these',
 'limitations',
 'and',
 'requirements',
 'a',
 'prosecuting',
 'attorney',
 'may',
 'also',
 'bring',
 'an',
 'action',
 'for',
 'injunctive',
 'relief',
 'for',
 'intentional',
 'or',
 'reckless',
 'violations',
 'of',
 'the',
 'limitations',
 'and',
 'requirements',
 'any',
 'person',
 'who',
 'violates',
 'the',
 'prohibition',
 'against',
 'performing',
 'inducing',
 'or',
 'attempting',
 'to',
 'perform',
 'or',
 'induce',
 'an',
 'abortion',
 'when',
 'the',
 'unborn',
 'child',
 'is',
 'capable',
 'of',
 'experiencing',
 'pain',
 'is',
 'guilty',
 'of',
 'a',
 'felony',
 'subject',
 'to',
 'a',
 'fine',
 'not',
 'to',
 'exceed',
 '10000',
 'imprisonment',
 'not',
 'to',
 'exceed',
 'three',
 'years',
 'and',
 'six',
 'months',
 'or',
 'both',
 'under',
 'current',
 'law',
 'annually',
 'each',
 'hospital',
 'clinic',
 'or',
 'other',
 'facility',
 'in',
 'which',
 'an',
 'induced',
 'abortion',
 'is',
 'performed',
 'must',
 'file',
 'with',
 'dhs',
 'a',
 'report',
 'for',
 'each',
 'induced',
 'abortion',
 'performed',
 'in',
 'the',
 'calendar',
 'year',
 'the',
 'report',
 'must',
 'contain',
 'for',
 'each',
 'patient',
 'the',
 'state',
 'and',
 'county',
 'if',
 'wisconsin',
 'of',
 'residence',
 'patient',
 'number',
 'race',
 'age',
 'marital',
 'status',
 'month',
 'and',
 'year',
 'in',
 'which',
 'the',
 'abortion',
 'was',
 'performed',
 'education',
 'number',
 'of',
 'weeks',
 'since',
 'patients',
 'last',
 'menstrual',
 'period',
 'whether',
 'the',
 'abortion',
 'was',
 'chemically',
 'or',
 'surgically',
 'induced',
 'or',
 'surgically',
 'induced',
 'following',
 'a',
 'failed',
 'chemical',
 'abortion',
 'and',
 'any',
 'resulting',
 'complications',
 'if',
 'the',
 'patient',
 'is',
 'a',
 'minor',
 'the',
 'report',
 'must',
 'contain',
 'whether',
 'consent',
 'for',
 'the',
 'abortion',
 'was',
 'provided',
 'and',
 'by',
 'whom',
 'and',
 'if',
 'consent',
 'was',
 'not',
 'provided',
 'on',
 'which',
 'basis',
 'the',
 'abortion',
 'was',
 'performed',
 'under',
 'current',
 'law',
 'dhs',
 'is',
 'required',
 'to',
 'collect',
 'the',
 'reported',
 'information',
 'in',
 'a',
 'manner',
 'that',
 'ensures',
 'anonymity',
 'of',
 'the',
 'patient',
 'who',
 'obtained',
 'the',
 'abortion',
 'the',
 'health',
 'care',
 'provider',
 'who',
 'performed',
 'the',
 'abortion',
 'and',
 'the',
 'facility',
 'in',
 'which',
 'the',
 'abortion',
 'was',
 'performed',
 'under',
 'current',
 'law',
 'dhs',
 'is',
 'required',
 'to',
 'publish',
 'annual',
 'demographic',
 'summaries',
 'of',
 'the',
 'reported',
 'information',
 'except',
 'what',
 'reveals',
 'the',
 'identity',
 'of',
 'a',
 'patient',
 'provider',
 'or',
 'facility',
 'the',
 'bill',
 'requires',
 'the',
 'hospital',
 'clinic',
 'or',
 'other',
 'facility',
 'to',
 'report',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'and',
 'whether',
 'ultrasound',
 'was',
 'used',
 'to',
 'assist',
 'in',
 'that',
 'determination',
 'of',
 'postfertilization',
 'age',
 'or',
 'if',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'was',
 'not',
 'determined',
 'the',
 'nature',
 'of',
 'the',
 'medical',
 'emergency',
 'if',
 'the',
 'unborn',
 'child',
 'is',
 'considered',
 'capable',
 'of',
 'experiencing',
 'pain',
 'the',
 'bill',
 'requires',
 'reporting',
 'of',
 'the',
 'nature',
 'of',
 'the',
 'pregnant',
 'womans',
 'medical',
 'emergency',
 'and',
 'a',
 'statement',
 'of',
 'whether',
 'the',
 'method',
 'of',
 'abortion',
 'used',
 'was',
 'one',
 'that',
 'provided',
 'the',
 'best',
 'opportunity',
 'for',
 'the',
 'unborn',
 'childs',
 'survival',
 'under',
 'current',
 'law',
 'a',
 'woman',
 'upon',
 'whom',
 'an',
 'abortion',
 'is',
 'to',
 'be',
 'performed',
 'or',
 'induced',
 'must',
 'give',
 'voluntary',
 'and',
 'informed',
 'written',
 'consent',
 'to',
 'an',
 'abortion',
 'except',
 'in',
 'a',
 'medical',
 'emergency',
 'a',
 'womans',
 'consent',
 'to',
 'an',
 'abortion',
 'is',
 'considered',
 'informed',
 'only',
 'if',
 'at',
 'least',
 '24',
 'hours',
 'before',
 'the',
 'abortion',
 'is',
 'performed',
 'or',
 'induced',
 'the',
 'physician',
 'or',
 'an',
 'assistant',
 'has',
 'in',
 'person',
 'orally',
 'provided',
 'the',
 'woman',
 'with',
 'certain',
 'information',
 'and',
 'given',
 'to',
 'the',
 'woman',
 'certain',
 'written',
 'materials',
 'if',
 'the',
 'pregnancy',
 'is',
 'the',
 'result',
 'of',
 'sexual',
 'assault',
 'or',
 'incest',
 'the',
 '24hour',
 'period',
 'but',
 'not',
 'the',
 'provision',
 'of',
 'information',
 'may',
 'be',
 'waived',
 'or',
 'reduced',
 'under',
 'certain',
 'circumstances',
 'in',
 'addition',
 'to',
 'the',
 'current',
 'requirement',
 'to',
 'inform',
 'the',
 'woman',
 'orally',
 'and',
 'in',
 'writing',
 'of',
 'the',
 'probable',
 'gestational',
 'age',
 'the',
 'bill',
 'requires',
 'that',
 'the',
 'woman',
 'be',
 'informed',
 'orally',
 'and',
 'in',
 'writing',
 'of',
 'the',
 'probable',
 'postfertilization',
 'age',
 'of',
 'the',
 'unborn',
 'child',
 'and',
 'the',
 'numerical',
 'odds',
 'of',
 'survival',
 'for',
 'an',
 'unborn',
 'child',
 'delivered',
 'at',
 'that',
 'probable',
 'postfertilization',
 'age',
 'the',
 'bill',
 'also',
 'requires',
 'that',
 'the',
 'woman',
 'be',
 'orally',
 'informed',
 'of',
 'and',
 'provided',
 'written',
 'materials',
 'on',
 'the',
 'availability',
 'of',
 'perinatal',
 'hospice']












Use Counter to count


In [65]:
from collections import Counter

In [66]:
Counter(tokens)


Out[66]:
Counter({'the': 82, 'of': 35, 'or': 23, 'abortion': 20, 'to': 19, 'and': 19, 'is': 18, 'a': 18, 'unborn': 14, 'in': 14, 'child': 13, 'was': 10, 'an': 10, 'age': 10, 'woman': 9, 'for': 9, 'bill': 9, 'performed': 9, 'postfertilization': 8, 'if': 8, 'probable': 7, 'that': 7, 'medical': 7, 'under': 6, 'emergency': 6, 'induced': 6, 'not': 5, 'experiencing': 5, 'provided': 5, 'current': 5, 'be': 5, 'patient': 5, 'capable': 5, 'pain': 5, 'requires': 5, 'consent': 4, 'whether': 4, 'facility': 4, 'informed': 4, 'must': 4, 'report': 4, 'which': 4, 'information': 4, 'who': 4, 'law': 4, 'considered': 4, 'person': 4, 'orally': 4, 'except': 3, 'has': 3, 'performing': 3, 'each': 3, 'unless': 3, 'on': 3, 'inducing': 3, 'written': 3, 'pregnancy': 3, 'whom': 3, 'certain': 3, 'determination': 3, 'physician': 3, 'any': 3, 'when': 3, 'dhs': 3, 'bring': 2, 'clinic': 2, 'surgically': 2, 'womans': 2, 'writing': 2, 'weeks': 2, 'survival': 2, 'induce': 2, 'number': 2, 'pregnant': 2, 'result': 2, 'year': 2, 'sexual': 2, 'violates': 2, 'best': 2, 'attempting': 2, 'materials': 2, 'provider': 2, 'limitations': 2, 'nature': 2, 'contain': 2, 'reported': 2, 'against': 2, 'period': 2, 'exceed': 2, 'incest': 2, 'hospital': 2, 'with': 2, 'manner': 2, 'prohibits': 2, 'requirements': 2, 'perform': 2, 'also': 2, 'other': 2, 'used': 2, 'undergoing': 2, 'may': 2, 'upon': 2, 'assault': 2, 'opportunity': 2, 'required': 2, 'at': 2, 'childs': 1, 'both': 1, 'terminate': 1, 'years': 1, 'fine': 1, 'summaries': 1, 'demographic': 1, '24': 1, '20': 1, 'father': 1, 'only': 1, 'physicians': 1, 'assistant': 1, 'delivered': 1, 'month': 1, 'provision': 1, 'failed': 1, 'annually': 1, 'these': 1, 'race': 1, 'reasonable': 1, 'reduced': 1, 'reveals': 1, 'attorney': 1, 'imprisonment': 1, 'availability': 1, 'marital': 1, 'hospice': 1, 'wisconsin': 1, 'calendar': 1, 'injunctive': 1, 'subject': 1, 'what': 1, 'since': 1, 'publish': 1, 'state': 1, 'health': 1, 'provides': 1, 'method': 1, 'reporting': 1, 'chemically': 1, 'assist': 1, 'felony': 1, 'given': 1, 'hours': 1, 'following': 1, 'by': 1, 'care': 1, 'obtained': 1, 'last': 1, 'months': 1, 'allows': 1, 'perinatal': 1, 'odds': 1, 'collect': 1, 'action': 1, 'numerical': 1, 'prosecuting': 1, 'one': 1, 'county': 1, 'ultrasound': 1, 'another': 1, 'anonymity': 1, 'ensures': 1, 'from': 1, 'requirement': 1, 'addition': 1, 'judgment': 1, 'three': 1, 'least': 1, 'basis': 1, 'circumstances': 1, 'statement': 1, 'survive': 1, 'minor': 1, 'more': 1, 'menstrual': 1, '24hour': 1, 'attempted': 1, 'but': 1, 'violations': 1, 'made': 1, 'resulting': 1, 'this': 1, 'gestational': 1, 'waived': 1, 'patients': 1, 'determined': 1, 'complications': 1, 'residence': 1, 'claim': 1, 'annual': 1, '10000': 1, 'give': 1, 'guilty': 1, 'file': 1, 'education': 1, 'inform': 1, 'six': 1, 'chemical': 1, 'damages': 1, 'before': 1, 'performance': 1, 'reckless': 1, 'status': 1, 'prohibition': 1, 'identity': 1, 'voluntary': 1, 'intentional': 1, 'relief': 1, 'relied': 1})












Use NLTK stopwords list


In [67]:
from nltk.corpus import stopwords

filtered_tokens = [w for w in tokens if not w in stopwords.words('english')]
count = Counter(filtered_tokens)
count


Out[67]:
Counter({'abortion': 20, 'unborn': 14, 'child': 13, 'age': 10, 'woman': 9, 'bill': 9, 'performed': 9, 'postfertilization': 8, 'probable': 7, 'medical': 7, 'emergency': 6, 'induced': 6, 'experiencing': 5, 'provided': 5, 'current': 5, 'patient': 5, 'capable': 5, 'pain': 5, 'requires': 5, 'consent': 4, 'report': 4, 'facility': 4, 'informed': 4, 'must': 4, 'whether': 4, 'information': 4, 'law': 4, 'considered': 4, 'person': 4, 'orally': 4, 'except': 3, 'performing': 3, 'unless': 3, 'inducing': 3, 'written': 3, 'pregnancy': 3, 'certain': 3, 'determination': 3, 'physician': 3, 'dhs': 3, 'bring': 2, 'clinic': 2, 'surgically': 2, 'womans': 2, 'writing': 2, 'weeks': 2, 'survival': 2, 'induce': 2, 'number': 2, 'pregnant': 2, 'contain': 2, 'result': 2, 'year': 2, 'sexual': 2, 'violates': 2, 'best': 2, 'attempting': 2, 'provider': 2, 'limitations': 2, 'nature': 2, 'reported': 2, 'period': 2, 'exceed': 2, 'incest': 2, 'hospital': 2, 'manner': 2, 'prohibits': 2, 'requirements': 2, 'perform': 2, 'also': 2, 'materials': 2, 'used': 2, 'undergoing': 2, 'may': 2, 'upon': 2, 'assault': 2, 'opportunity': 2, 'required': 2, 'childs': 1, 'terminate': 1, 'years': 1, 'fine': 1, 'summaries': 1, 'demographic': 1, '24': 1, '20': 1, 'father': 1, 'failed': 1, 'circumstances': 1, 'physicians': 1, 'assistant': 1, 'delivered': 1, 'month': 1, 'provision': 1, 'annually': 1, 'collect': 1, 'race': 1, 'reasonable': 1, 'reduced': 1, 'reveals': 1, 'attorney': 1, 'imprisonment': 1, 'marital': 1, 'hospice': 1, 'wisconsin': 1, 'calendar': 1, 'injunctive': 1, 'subject': 1, 'since': 1, 'publish': 1, 'availability': 1, 'state': 1, 'health': 1, 'provides': 1, 'method': 1, 'chemically': 1, 'basis': 1, 'reporting': 1, 'felony': 1, 'given': 1, 'hours': 1, 'care': 1, 'obtained': 1, 'last': 1, 'residence': 1, 'months': 1, 'guilty': 1, 'perinatal': 1, 'odds': 1, 'action': 1, 'numerical': 1, 'prosecuting': 1, 'one': 1, 'county': 1, 'ultrasound': 1, 'another': 1, 'anonymity': 1, 'ensures': 1, 'requirement': 1, 'addition': 1, 'judgment': 1, 'three': 1, 'least': 1, 'statement': 1, 'survive': 1, 'minor': 1, 'menstrual': 1, 'attempted': 1, 'violations': 1, 'made': 1, 'resulting': 1, 'gestational': 1, 'waived': 1, 'patients': 1, 'determined': 1, 'complications': 1, 'following': 1, 'claim': 1, 'annual': 1, '10000': 1, 'give': 1, 'allows': 1, 'file': 1, 'education': 1, '24hour': 1, 'inform': 1, 'six': 1, 'chemical': 1, 'damages': 1, 'performance': 1, 'reckless': 1, 'status': 1, 'assist': 1, 'prohibition': 1, 'identity': 1, 'voluntary': 1, 'relief': 1, 'relied': 1, 'intentional': 1})













Stemming


In [68]:
from nltk.stem.porter import PorterStemmer
stemmer = PorterStemmer()

In [69]:
stemmer.stem('drop')


Out[69]:
u'drop'

In [70]:
stemmer.stem('dropped')


Out[70]:
u'drop'

In [71]:
stemmer.stem('dropping')


Out[71]:
u'drop'

In [82]:
stemmer.stem('driven')


Out[82]:
u'driven'

In [72]:
stemmer.stem('drops')


Out[72]:
u'drop'













Stem tokens


In [74]:
stemmed_tokens = [stemmer.stem(token) for token in filtered_tokens]

In [86]:
stemmed_tokens


Out[86]:
[u'bill',
 u'prohibit',
 u'perform',
 u'abort',
 u'except',
 u'medic',
 u'emerg',
 u'unless',
 u'physician',
 u'perform',
 u'induc',
 u'abort',
 u'made',
 u'determin',
 u'probabl',
 u'postfertil',
 u'age',
 u'unborn',
 u'child',
 u'reli',
 u'upon',
 u'anoth',
 u'physician',
 u'determin',
 u'postfertil',
 u'age',
 u'bill',
 u'prohibit',
 u'person',
 u'perform',
 u'induc',
 u'attempt',
 u'perform',
 u'induc',
 u'abort',
 u'unborn',
 u'child',
 u'consid',
 u'capabl',
 u'experienc',
 u'pain',
 u'unless',
 u'woman',
 u'undergo',
 u'medic',
 u'emerg',
 u'bill',
 u'unborn',
 u'child',
 u'capabl',
 u'experienc',
 u'pain',
 u'probabl',
 u'postfertil',
 u'age',
 u'unborn',
 u'child',
 u'20',
 u'week',
 u'unborn',
 u'child',
 u'consid',
 u'capabl',
 u'experienc',
 u'pain',
 u'pregnant',
 u'woman',
 u'undergo',
 u'medic',
 u'emerg',
 u'bill',
 u'requir',
 u'physician',
 u'termin',
 u'pregnanc',
 u'manner',
 u'reason',
 u'medic',
 u'judgment',
 u'provid',
 u'best',
 u'opportun',
 u'unborn',
 u'child',
 u'surviv',
 u'bill',
 u'allow',
 u'woman',
 u'abort',
 u'perform',
 u'attempt',
 u'father',
 u'unborn',
 u'child',
 u'unless',
 u'pregnanc',
 u'result',
 u'sexual',
 u'assault',
 u'incest',
 u'bring',
 u'claim',
 u'damag',
 u'person',
 u'violat',
 u'limit',
 u'requir',
 u'prosecut',
 u'attorney',
 u'may',
 u'also',
 u'bring',
 u'action',
 u'injunct',
 u'relief',
 u'intent',
 u'reckless',
 u'violat',
 u'limit',
 u'requir',
 u'person',
 u'violat',
 u'prohibit',
 u'perform',
 u'induc',
 u'attempt',
 u'perform',
 u'induc',
 u'abort',
 u'unborn',
 u'child',
 u'capabl',
 u'experienc',
 u'pain',
 u'guilti',
 u'feloni',
 u'subject',
 u'fine',
 u'exceed',
 u'10000',
 u'imprison',
 u'exceed',
 u'three',
 u'year',
 u'six',
 u'month',
 u'current',
 u'law',
 u'annual',
 u'hospit',
 u'clinic',
 u'facil',
 u'induc',
 u'abort',
 u'perform',
 u'must',
 u'file',
 u'dh',
 u'report',
 u'induc',
 u'abort',
 u'perform',
 u'calendar',
 u'year',
 u'report',
 u'must',
 u'contain',
 u'patient',
 u'state',
 u'counti',
 u'wisconsin',
 u'resid',
 u'patient',
 u'number',
 u'race',
 u'age',
 u'marit',
 u'statu',
 u'month',
 u'year',
 u'abort',
 u'perform',
 u'educ',
 u'number',
 u'week',
 u'sinc',
 u'patient',
 u'last',
 u'menstrual',
 u'period',
 u'whether',
 u'abort',
 u'chemic',
 u'surgic',
 u'induc',
 u'surgic',
 u'induc',
 u'follow',
 u'fail',
 u'chemic',
 u'abort',
 u'result',
 u'complic',
 u'patient',
 u'minor',
 u'report',
 u'must',
 u'contain',
 u'whether',
 u'consent',
 u'abort',
 u'provid',
 u'consent',
 u'provid',
 u'basi',
 u'abort',
 u'perform',
 u'current',
 u'law',
 u'dh',
 u'requir',
 u'collect',
 u'report',
 u'inform',
 u'manner',
 u'ensur',
 u'anonym',
 u'patient',
 u'obtain',
 u'abort',
 u'health',
 u'care',
 u'provid',
 u'perform',
 u'abort',
 u'facil',
 u'abort',
 u'perform',
 u'current',
 u'law',
 u'dh',
 u'requir',
 u'publish',
 u'annual',
 u'demograph',
 u'summari',
 u'report',
 u'inform',
 u'except',
 u'reveal',
 u'ident',
 u'patient',
 u'provid',
 u'facil',
 u'bill',
 u'requir',
 u'hospit',
 u'clinic',
 u'facil',
 u'report',
 u'probabl',
 u'postfertil',
 u'age',
 u'unborn',
 u'child',
 u'whether',
 u'ultrasound',
 u'use',
 u'assist',
 u'determin',
 u'postfertil',
 u'age',
 u'probabl',
 u'postfertil',
 u'age',
 u'unborn',
 u'child',
 u'determin',
 u'natur',
 u'medic',
 u'emerg',
 u'unborn',
 u'child',
 u'consid',
 u'capabl',
 u'experienc',
 u'pain',
 u'bill',
 u'requir',
 u'report',
 u'natur',
 u'pregnant',
 u'woman',
 u'medic',
 u'emerg',
 u'statement',
 u'whether',
 u'method',
 u'abort',
 u'use',
 u'one',
 u'provid',
 u'best',
 u'opportun',
 u'unborn',
 u'child',
 u'surviv',
 u'current',
 u'law',
 u'woman',
 u'upon',
 u'abort',
 u'perform',
 u'induc',
 u'must',
 u'give',
 u'voluntari',
 u'inform',
 u'written',
 u'consent',
 u'abort',
 u'except',
 u'medic',
 u'emerg',
 u'woman',
 u'consent',
 u'abort',
 u'consid',
 u'inform',
 u'least',
 u'24',
 u'hour',
 u'abort',
 u'perform',
 u'induc',
 u'physician',
 u'assist',
 u'person',
 u'oral',
 u'provid',
 u'woman',
 u'certain',
 u'inform',
 u'given',
 u'woman',
 u'certain',
 u'written',
 u'materi',
 u'pregnanc',
 u'result',
 u'sexual',
 u'assault',
 u'incest',
 u'24hour',
 u'period',
 u'provis',
 u'inform',
 u'may',
 u'waiv',
 u'reduc',
 u'certain',
 u'circumst',
 u'addit',
 u'current',
 u'requir',
 u'inform',
 u'woman',
 u'oral',
 u'write',
 u'probabl',
 u'gestat',
 u'age',
 u'bill',
 u'requir',
 u'woman',
 u'inform',
 u'oral',
 u'write',
 u'probabl',
 u'postfertil',
 u'age',
 u'unborn',
 u'child',
 u'numer',
 u'odd',
 u'surviv',
 u'unborn',
 u'child',
 u'deliv',
 u'probabl',
 u'postfertil',
 u'age',
 u'bill',
 u'also',
 u'requir',
 u'woman',
 u'oral',
 u'inform',
 u'provid',
 u'written',
 u'materi',
 u'avail',
 u'perinat',
 u'hospic']

In [76]:
Counter(stemmed_tokens)


Out[76]:
Counter({u'abort': 20, u'perform': 15, u'unborn': 14, u'child': 14, u'woman': 11, u'induc': 11, u'requir': 10, u'age': 10, u'bill': 9, u'inform': 9, u'postfertil': 8, u'provid': 8, u'medic': 7, u'report': 7, u'probabl': 7, u'patient': 6, u'emerg': 6, u'current': 5, u'pain': 5, u'capabl': 5, u'experienc': 5, u'consent': 4, u'whether': 4, u'facil': 4, u'must': 4, u'physician': 4, u'determin': 4, u'consid': 4, u'law': 4, u'person': 4, u'oral': 4, u'except': 3, u'dh': 3, u'pregnanc': 3, u'prohibit': 3, u'result': 3, u'year': 3, u'unless': 3, u'surviv': 3, u'written': 3, u'certain': 3, u'violat': 3, u'attempt': 3, u'month': 2, u'bring': 2, u'clinic': 2, u'number': 2, u'surgic': 2, u'pregnant': 2, u'contain': 2, u'natur': 2, u'sexual': 2, u'best': 2, u'chemic': 2, u'materi': 2, u'annual': 2, u'period': 2, u'undergo': 2, u'exceed': 2, u'incest': 2, u'opportun': 2, u'use': 2, u'limit': 2, u'manner': 2, u'write': 2, u'also': 2, u'week': 2, u'may': 2, u'assist': 2, u'upon': 2, u'assault': 2, u'hospit': 2, u'obtain': 1, u'addit': 1, u'follow': 1, u'fine': 1, u'demograph': 1, u'24': 1, u'20': 1, u'father': 1, u'ident': 1, u'one': 1, u'reveal': 1, u'resid': 1, u'race': 1, u'summari': 1, u'attorney': 1, u'wisconsin': 1, u'fail': 1, u'calendar': 1, u'subject': 1, u'statu': 1, u'collect': 1, u'publish': 1, u'state': 1, u'health': 1, u'voluntari': 1, u'complic': 1, u'method': 1, u'prosecut': 1, u'numer': 1, u'imprison': 1, u'given': 1, u'reason': 1, u'feloni': 1, u'sinc': 1, u'basi': 1, u'last': 1, u'action': 1, u'guilti': 1, u'counti': 1, u'ultrasound': 1, u'ensur': 1, u'damag': 1, u'injunct': 1, u'three': 1, u'least': 1, u'waiv': 1, u'avail': 1, u'reli': 1, u'statement': 1, u'termin': 1, u'care': 1, u'minor': 1, u'menstrual': 1, u'circumst': 1, u'perinat': 1, u'educ': 1, u'made': 1, u'hour': 1, u'anonym': 1, u'provis': 1, u'claim': 1, u'10000': 1, u'give': 1, u'file': 1, u'deliv': 1, u'24hour': 1, u'anoth': 1, u'reckless': 1, u'odd': 1, u'marit': 1, u'intent': 1, u'judgment': 1, u'six': 1, u'reduc': 1, u'gestat': 1, u'relief': 1, u'allow': 1, u'hospic': 1})