Disambiguating mentions of API methods in stack overflow via type scoping

Stack Overflow is one of the most popular venues for developers to find answers to their API-related questions. However, API mentions in informal text content of Stack Overflow are often ambiguous and thus it could be difficult to find the APIs and learn their usages. Disambiguating these API mentio...

Full description

Saved in:
Bibliographic Details
Main Authors: LUONG, Kien, THUNG, Ferdian, LO, David
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2021
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/6874
https://ink.library.smu.edu.sg/context/sis_research/article/7877/viewcontent/Disambiguating_Mentions_of_API_Methods_in_Stack_Overflow_via_Type_Scoping.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-7877
record_format dspace
spelling sg-smu-ink.sis_research-78772022-02-07T11:07:28Z Disambiguating mentions of API methods in stack overflow via type scoping LUONG, Kien THUNG, Ferdian LO, David Stack Overflow is one of the most popular venues for developers to find answers to their API-related questions. However, API mentions in informal text content of Stack Overflow are often ambiguous and thus it could be difficult to find the APIs and learn their usages. Disambiguating these API mentions is not trivial, as an API mention can match with names of APIs from different libraries or even the same one. In this paper, we propose an approach called DATYS to disambiguate API mentions in informal text content of Stack Overflow using type scoping. With type scoping, we consider API methods whose type (i.e. class or interface) appear in more parts (i.e., scopes) of a Stack Overflow thread as more likely to be the API method that the mention refers to. We have evaluated our approach on a dataset of 807 API mentions from 380 threads containing discussions of API methods from four popular third-party Java libraries. Our experiment shows that our approach beats the state-of-the-art by 42.86% in terms of F1-score. 2021-10-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/6874 info:doi/10.1109/ICSME52107.2021.00080 https://ink.library.smu.edu.sg/context/sis_research/article/7877/viewcontent/Disambiguating_Mentions_of_API_Methods_in_Stack_Overflow_via_Type_Scoping.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University API linking mining disambiguation Artificial Intelligence and Robotics Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic API linking
mining
disambiguation
Artificial Intelligence and Robotics
Software Engineering
spellingShingle API linking
mining
disambiguation
Artificial Intelligence and Robotics
Software Engineering
LUONG, Kien
THUNG, Ferdian
LO, David
Disambiguating mentions of API methods in stack overflow via type scoping
description Stack Overflow is one of the most popular venues for developers to find answers to their API-related questions. However, API mentions in informal text content of Stack Overflow are often ambiguous and thus it could be difficult to find the APIs and learn their usages. Disambiguating these API mentions is not trivial, as an API mention can match with names of APIs from different libraries or even the same one. In this paper, we propose an approach called DATYS to disambiguate API mentions in informal text content of Stack Overflow using type scoping. With type scoping, we consider API methods whose type (i.e. class or interface) appear in more parts (i.e., scopes) of a Stack Overflow thread as more likely to be the API method that the mention refers to. We have evaluated our approach on a dataset of 807 API mentions from 380 threads containing discussions of API methods from four popular third-party Java libraries. Our experiment shows that our approach beats the state-of-the-art by 42.86% in terms of F1-score.
format text
author LUONG, Kien
THUNG, Ferdian
LO, David
author_facet LUONG, Kien
THUNG, Ferdian
LO, David
author_sort LUONG, Kien
title Disambiguating mentions of API methods in stack overflow via type scoping
title_short Disambiguating mentions of API methods in stack overflow via type scoping
title_full Disambiguating mentions of API methods in stack overflow via type scoping
title_fullStr Disambiguating mentions of API methods in stack overflow via type scoping
title_full_unstemmed Disambiguating mentions of API methods in stack overflow via type scoping
title_sort disambiguating mentions of api methods in stack overflow via type scoping
publisher Institutional Knowledge at Singapore Management University
publishDate 2021
url https://ink.library.smu.edu.sg/sis_research/6874
https://ink.library.smu.edu.sg/context/sis_research/article/7877/viewcontent/Disambiguating_Mentions_of_API_Methods_in_Stack_Overflow_via_Type_Scoping.pdf
_version_ 1770576111101542400