stephbuon / democracy-lab

Code, manuals, and concepts for Democracy Lab research and affiliate projects.
MIT License
0 stars 0 forks source link

Fix Apostrophe Inconsistencies in C19 Hansard Debate Titles #110

Open stephbuon opened 3 years ago

stephbuon commented 3 years ago

Debate titles often have inconsistent usages of ' trailing the letter s.

Example 1:

THE LORDS' COMMISSIONERS' SPEECH. THE LORDS' COMMISSIONERS SPEECH.

The first COMMISSIONERS has a trailing apostrophe, the second does not.

Example 2:

INSOLVENT DEBTORS' BILL INSOLVENT DEBTORS BILL

The first DEBTORS has a trialing apostrophe, the second does not.

Find instances where an apostrophe does not trail the letter s. If there is a matching instance where an apostrophe does trail the letter s, add an apostrophe to the string without one making the two titles the same.