Reference-dot match captures too much
harpunius opened this issue · comments
When run on input
Hans & Yorke (2006) contradict existing literature (Hans and Yorke, 2006).
the program outputs
Match from 9 to 22 for:
Target: Yorke (2006)
Feedback: References go at the end of sentences; end your sentence after the reference.
Suggestion: Yorke (2006).
which is not correct (from my understanding, and as referenced here.
It seems like this rule is misunderstood. References can occur at any place in a sentence.
See http://www.apastyle.org/manual/related/sample-experiment-paper-1.pdf figure 2.1.
Thanks for catching this! One of the biggest problems I had initially writing this package, was the fact that I was (and am) generally unfamiliar with APA style. The refdatedot pattern comes from a similar program and I think I assumed it to be correct.
Glad you caught this, as I don't want to mislead people who are checking their papers.