To Do or Not To Do: Distill crowdsourced negative caveats to augment api documentation

Negative caveats of application programming interfaces (APIs) are about “how not to use an API,” which are often absent from the official API documentation. When these caveats are overlooked, programming errors may emerge from misusing APIs, leading to heavy discussions on Q&A websites like Stac...

Celý popis

Uloženo v:
Podrobná bibliografie
Vydáno v:Journal of the Association for Information Science and Technology Ročník 69; číslo 12; s. 1460 - 1475
Hlavní autoři: Li, Jing, Sun, Aixin, Xing, Zhenchang
Médium: Journal Article
Jazyk:angličtina
Vydáno: 01.12.2018
ISSN:2330-1635, 2330-1643
On-line přístup:Získat plný text
Tagy: Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
Popis
Shrnutí:Negative caveats of application programming interfaces (APIs) are about “how not to use an API,” which are often absent from the official API documentation. When these caveats are overlooked, programming errors may emerge from misusing APIs, leading to heavy discussions on Q&A websites like Stack Overflow. If the overlooked caveats could be mined from these discussions, they would be beneficial for programmers to avoid misuse of APIs. However, it is challenging because the discussions are informal, redundant, and diverse. For this, for example, we propose Disca, a novel approach for automatically Distilling desirable API negative caveats from unstructured Q&A discussions. Through sentence selection and prominent term clustering, Disca ensures that distilled caveats are context‐independent, prominent, semantically diverse, and nonredundant. Quantitative evaluation in our experiments shows that the proposed Disca significantly outperforms four text‐summarization techniques. We also show that the distilled API negative caveats could greatly augment API documentation through qualitative analysis.
ISSN:2330-1635
2330-1643
DOI:10.1002/asi.24067