Last modified: 2014-07-11 20:11:06 UTC
Sample fail: https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=17545993&prop=extracts&exsentences=2&exintro&explaintext
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1460
H. P. Lovecraft: Against the World, Against Life http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=17545993&prop=extracts&exsentences=2&exintro&explaintext Here I obtained a truncated sentence, cause the dots in the name force the sentence to be truncated.
I have more comments on this bug. It is just a guess, not tested on my local machine yet - sorry, I am new in wikimedia-dev, and process for reproducing the bug is still not clear. My guess is due because the API truncate the sentence roughly by counting the dots '.' If so, a quick improvement may be check: if the char before the dot is a capital letter, or a word formed by a capital letter > truncate at the next dot
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1478
Abbreviations can also cause problems. Here "ca." for "circa" at Norwegian Bokmål Wikipedia: https://no.wikipedia.org/w/api.php?action=query&format=jsonfm&prop=extracts&exintro=true&exsentences=2&explaintext=true&titles=Leikanger%20kirke%20(Leikanger)
*** Bug 67841 has been marked as a duplicate of this bug. ***
Per 67841, blanking out instances of the title before searching for a cutoff point would improve many of these cases.