Page MenuHomePhabricator

API request for first sentence of article doesn't work correctly if first sentence ends in a number
Closed, ResolvedPublic

Description

API call:
https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&explaintext&titles=Kvinnliga+medborgarskolan+vid+Fogelstad

Expected result:
Kvinnliga medborgarskolan vid Fogelstad (Fogelstad Citizen School for Women) was a Swedish education center for women, active from 1922 until 1954.

Actual result:
Kvinnliga medborgarskolan vid Fogelstad (Fogelstad Citizen School for Women) was a Swedish education center for women, active from 1922 until 1954. The purpose of the center was to educate women in their new rights and responsibilities as citizens after women suffrage had been achieved in 1921. The center was founded by the Fogelstadgruppen (Fogelstad Group), a women's group which also managed the Frisinnade kvinnors riksf\u00f6rbund (Union of Liberal Women) and the magazine Tidevarvet, and it was situated at the Folgestad manor, which was owned by one of the members: Elisabeth Tamm, herself one of the first women in the Swedish parliament.

Event Timeline

kaldari raised the priority of this task from to Needs Triage.
kaldari updated the task description. (Show Details)
kaldari added a project: TextExtracts.
kaldari subscribed.

It seems that if the last word of the sentence is a year, TextExtracts doesn't recognize it as the end of the sentence.

kaldari renamed this task from API request for first sentence of article returns first paragraph to API request for first sentence of article doesn't work correctly if first sentence ends in a number.Nov 17 2015, 3:09 AM
kaldari updated the task description. (Show Details)
kaldari added a project: good first task.

Change 253834 had a related patch set uploaded (by Sumit):
TextExtracts allow sentence end with numbers

https://gerrit.wikimedia.org/r/253834

Change 253834 merged by jenkins-bot:
TextExtracts allow sentence end with numbers

https://gerrit.wikimedia.org/r/253834

kaldari claimed this task.