CoChat

Detecting API documentation errors

Zhong, Hao, Su, Zhendong · 2013 · Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications
Cited by 80

The DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.

Abstract

When programmers encounter an unfamiliar API library, they often need to refer to its documentations, tutorials, or discussions on development forums to learn its proper usage. These API documents contain valuable information, but may also mislead programmers as they may contain errors (e.g., broken code names and obsolete code samples). Although most API documents are actively maintained and updated, studies show that many new and latent errors do exist. It is tedious and error-prone to find such errors manually as API documents can be enormous with thousands of pages. Existing tools are ineffective in locating documentation errors because traditional natural language (NL) tools do not understand code names and code samples, and traditional code analysis tools do not understand NL sentences. In this paper, we propose the first approach, DOCREF, specifically designed and developed to detect API documentation errors. We formulate a class of inconsistencies to indicate potential documentation errors, and combine NL and code analysis techniques to detect and report such inconsistencies. We have implemented DOCREF and evaluated its effectiveness on the latest documentations of five widely-used API libraries. DOCREF has detected more than 1,000 new documentation errors, which we have reported to the authors. Many of the errors have already been confirmed and fixed, after we reported them.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/2509136.2509523

Cites

1 of 1 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 1 references

Research works printed but not linked: 40

  1. 10.1109/ICPC.2010.47 · DOI
  2. 10.1145/1806799.1806855 · DOI · Paper page
  3. 10.5555/2337223.2337268 · doi:10.5555/2337223.2337268
  4. 10.1145/1390630.1390664 · DOI · Paper page
  5. B. Carpenter and B. Baldwin . Text analysis with LingPipe 4 . LingPipe Inc , 2011 . B. Carpenter and B. Baldwin. Text analysis with LingPipe 4. LingPipe Inc, 2011.
  6. C. E. Chaski . Empirical evaluations of language-based author identification techniques . Forensic Linguistics , 8 : 1 -- 65 , 2001 . C. E. Chaski. Empirical evaluations of language-based author identification techniques. Forensic Linguistics, 8:1--65, 2001.
  7. 10.1145/1449764.1449790 · DOI · Paper page
  8. 10.5555/2337223.2337230 · doi:10.5555/2337223.2337230
  9. 10.1145/1085313.1085331 · DOI · Paper page
  10. 10.1109/ICSE.2009.5070532 · DOI
  11. 10.5555/2337223.2337255 · doi:10.5555/2337223.2337255
  12. 10.1007/s00766-003-0174-0 · doi:10.1007/s00766-003-0174-0
  13. 10.2307/815131 · doi:10.2307/815131
  14. J. Gosling , B. Joy , G. Steele , and G. Bracha . The Java Language Specification , Java SE 7 Edition. 2012 . J. Gosling, B. Joy, G. Steele, and G. Bracha. The Java Language Specification, Java SE 7 Edition. 2012.
  15. 10.5555/2337223.2337322 · doi:10.5555/2337223.2337322
  16. 10.1007/978-3-642-03013-0_14 · DOI · Paper page
  17. 10.1145/2414782.2414783 · DOI
  18. 10.3115/1075096.1075150 · DOI · Paper page
  19. 10.1109/RE.2007.38 · doi:10.1109/re.2007.38
  20. 10.1145/2462456.2464443 · DOI · Paper page
  21. 10.1109/MS.2003.1241364 · DOI · Paper page
  22. W. Maalej and M. P. Robillard . Patterns of knowledge in API reference documentation . IEEE Transactions on Software Engineering, to appear. W. Maalej and M. P. Robillard. Patterns of knowledge in API reference documentation. IEEE Transactions on Software Engineering, to appear.
  23. 10.1109/TSE.2004.1265817 · DOI · Paper page
  24. 10.1002/spe.v40:7 · doi:10.1002/spe.v40:7
  25. 10.1145/584955.584976 · DOI · Paper page
  26. 10.5555/1765931.1765947 · doi:10.5555/1765931.1765947
  27. 10.5555/2337223.2337319 · doi:10.5555/2337223.2337319
  28. 10.1109/52.210605 · DOI
  29. 10.5555/2486788.2486897 · doi:10.5555/2486788.2486897
  30. 10.1007/s10664-010-9150-8 · DOI · Paper page
  31. 10.1023/A:1019918908208 · doi:10.1023/a:1019918908208
  32. 10.1145/1294948.1294952 · DOI
  33. 10.1145/505282.505283 · DOI · Paper page
  34. 10.5555/1987434.1987473 · doi:10.5555/1987434.1987473
  35. N. Synytskyy , J. R. Cordy , and T. R. Dean . Robust multilingual parsing using island grammars . In Proc. CASCON , pages 266 -- 278 , 2003 . N. Synytskyy, J. R. Cordy, and T. R. Dean. Robust multilingual parsing using island grammars. In Proc. CASCON, pages 266--278, 2003.
  36. 10.1145/1294261.1294276 · DOI · Paper page
  37. 10.1109/ICST.2012.106 · DOI · Paper page
  38. 10.1145/2393596.2393608 · doi:10.1145/2393596.2393608
  39. 10.1007/978-3-642-03013-0_15 · DOI · Paper page
  40. 10.1109/ASE.2009.94 · DOI · Paper page

Cited by

Metadata

Authors
Zhong, H., & Su, Z.
Venue
Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications
Publisher
ACM
Published
2013-10-29
Pages
803-816
OpenAlex
W2166069603
Cited by
80
References
1
FWCI
4.57
Type
conference paper
Language
en
Open access
closed

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.