You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from datetime import datetime, date, time, timedelta
paperhiveid = sys.argv[1]
githubid = sys.argv[2]
template = """Dear {name},
thanks for your offer. The book can be found at
https://paperhive.org/documents/{paperhiveid}
You are assigned the following chapters:
{chapterlist}
Next to the Paperhive online annotation platform, you can also download the pdf from http://langsci.github.io/{githubid}/proofreading.pdf if you prefer. Having the correction at Paperhive in a central place has proven much more convenient for the authors, but it is up to you to choose your preferred method of proofreading.
For most of the issues mentioned there, native competence is not necessary. We have every chapter checked by 2 people, at least one of which is a native speaker.
We aim at having the corrections in by {duedate}.
Best wishes and thanks again for your help
Sebastian
"""
chapters = ['0']+[l.strip() for l in open("chapternames").readlines()]
assignments = open("assignments").readlines()
mails = []
for a in assignments:
name = a.split()[0]
chapternumbers = a.split()[1:]
chapterlist = '\n'.join("* %s %s"%(i,chapters[int(i)]) for i in chapternumbers)