IDEAS home Printed from https://ideas.repec.org/a/bla/jinfst/v69y2018i12p1460-1475.html
   My bibliography  Save this article

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

Author

Listed:
  • Jing Li
  • Aixin Sun
  • Zhenchang Xing

Abstract

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.

Suggested Citation

  • Jing Li & Aixin Sun & Zhenchang Xing, 2018. "To Do or Not To Do: Distill crowdsourced negative caveats to augment api documentation," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 69(12), pages 1460-1475, December.
  • Handle: RePEc:bla:jinfst:v:69:y:2018:i:12:p:1460-1475
    DOI: 10.1002/asi.24067
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/asi.24067
    Download Restriction: no

    File URL: https://libkey.io/10.1002/asi.24067?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bla:jinfst:v:69:y:2018:i:12:p:1460-1475. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: http://www.asis.org .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.