Lune

ICSE2022Top-tier venue

ARCLIN: Automated API Mention Resolution for Unformatted Texts

Yintong Huo, Yuxin Su, Hongming Zhang, Michael R. Lyu

Abstract

Online technical forums (e.g., StackOverflow) are popular platforms for developers to discuss technical problems such as how to use a specific Application Programming Interface (API), how to solve the programming tasks, or how to fix bugs in their code. These discussions can often provide auxiliary knowledge of how to use the software that is not covered by the official documents. The automatic extraction of such knowledge may support a set of downstream tasks like API searching or indexing. However, unlike official documentation written by experts, discussions in open forums are made by regular developers who write in short and informal texts, including spelling errors or abbreviations. There are three major challenges for the accurate APIs recognition and linking mentioned APIs from unstructured natural language documents to an entry in the API repository: (1) distinguishing API mentions from common words; (2) identifying API mentions without a fully qualified name; and (3) disambiguating API mentions with similar method names but in a different library. In this paper, to tackle these challenges, we propose an ARCLIN tool, which can effectively distinguish and link APIs without using human annotations. Specifically, we first design an API recognizer to automatically extract API mentions from natural language sentences by a Conditional Random Field (CRF) on the top of a Bi-directional Long Short-Term Memory (Bi-LSTM) module, then we apply a context-aware scoring mechanism to compute the mention-entry similarity for each entry in an API repository. Compared to previous approaches with heuristic rules, our proposed tool without manual inspection outperforms by 8% in a high-quality dataset Py-mention, which contains 558 mentions and 2,830 sentences from five popular Python libraries. To our best knowledge, ARCLIN is the first approach to achieve full automation of API mention resolution from unformatted text without manually collected labels.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • IntelliRadar: A Comprehensive Platform to Pinpoint Malicious Packages from Cyber Intelligence cites Software Entity Recognition with Noise-Robust Learning
  • API-Misuse Detection Driven by Fine-Grained API-Constraint Knowledge Graph cites Demystify official API usage directives with crowdsourced API misuse scenarios, erroneous code examples and patches
  • Improving API Knowledge Discovery with ML: A Case Study of Comparable API Methods cites Code and Named Entity Recognition in StackOverflow
  • Improving API Knowledge Discovery with ML: A Case Study of Comparable API Methods cites Demystify official API usage directives with crowdsourced API misuse scenarios, erroneous code examples and patches
  • Software Entity Recognition with Noise-Robust Learning cites API method recommendation via explicit matching of functionality verb phrases
  • Software Entity Recognition with Noise-Robust Learning cites Code and Named Entity Recognition in StackOverflow
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Improving API Knowledge Discovery with ML: A Case Study of Comparable API MethodsDaye Nam, Brad A. Myers, Bogdan Vasilescu, Vincent J. HellendoornICSE 2023 · 6 citations
  2. Software Entity Recognition with Noise-Robust LearningTai Nguyen, Yifeng Di, Joohan Lee, Muhao Chen et al.ASE 2023 · 2 citations
  3. IntelliRadar: A Comprehensive Platform to Pinpoint Malicious Packages from Cyber IntelligenceWenbo Guo, Chengwei Liu, Limin Wang, Yiran Zhang et al.ICSE 2026

Builds on4

  1. API-Misuse Detection Driven by Fine-Grained API-Constraint Knowledge GraphXiaoxue Ren, Xinyuan Ye, Zhenchang Xing, Xin Xia et al.ASE 2020 · 62 citations
  2. API method recommendation via explicit matching of functionality verb phrasesWenkai Xie, Xin Peng, Mingwei Liu, Christoph Treude et al.FSE 2020 · 33 citations
  3. Demystify official API usage directives with crowdsourced API misuse scenarios, erroneous code examples and patchesXiaoxue Ren, Jiamou Sun, Zhenchang Xing, Xin Xia et al.ICSE 2020 · 28 citations
  4. Code and Named Entity Recognition in StackOverflowJeniya Tabassum, Mounica Maddela, Wei Xu, Alan RitterACL 2020 · 9 citations

Related papers

  1. Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context LearningYubo Mai, Zhipeng Gao, Xing Hu, Lingfeng Bao et al.FSE 2024 · 4 citations
  2. Automating API Documentation from Crowdsourced KnowledgeBonan Kou, Zijie Zhou, Muhao Chen, Tianyi ZhangICSE 2026
  3. Generating Concept based API Element Comparison Using a Knowledge GraphYang Liu, Mingwei Liu, Xin Peng, Christoph Treude et al.ASE 2020 · 28 citations
  4. PyART: Python API Recommendation in Real-TimeXincheng He, Lei Xu, Xiangyu Zhang, Rui Hao et al.ICSE 2021 · 29 citations
  5. APIRecX: Cross-Library API Recommendation via Pre-Trained Language ModelYuning Kang, Zan Wang, Hongyu Zhang, Junjie Chen et al.EMNLP 2021 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines