Scalar: A Part-of-Speech Tagger for Identifiers
The paper presents the Source Code Analysis and Lexical Annotation Runtime (SCALAR), a tool specialized for mapping (annotating) source code identifier names to their corresponding part-of-speech tag sequence (grammar pattern). SCALAR's internal model is trained using scikit-learn's GradientBoostingClassifier in conjunction with a manually-curated oracle of identifier names and their grammar patterns. This specializes the tagger to recognize the unique structure of the natural language used by developers to create all types of identifiers (e.g., function names, variable names etc.). SCALAR's output is compared with a previous version of the tagger, as well as a modern off-the-shelf part-of-speech tagger to show how it improves upon other taggers' output for annotating identifiers. The code is available on Github<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</sup><sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</sup>https://github.com/SCANL/scanl_tagger
Authors
- Joshua A.C. Behler (ORCID: https://orcid.org/0009-0006-3104-7743)
- Jonathan I. Maletic (ORCID: https://orcid.org/0000-0001-5289-135X)
- Christian D. Newman (ORCID: https://orcid.org/0000-0002-8838-4074)
- Anthony Peruma (ORCID: https://orcid.org/0000-0003-2585-657X)
- Michael L. Collard (ORCID: https://orcid.org/0000-0002-4271-1383)
- S. Marc Testa
- Mohamed Wiem Mkaouer (ORCID: https://orcid.org/0000-0001-6010-7561)
- Reem S. Alsuhaibani (ORCID: https://orcid.org/0000-0002-6664-2810)
- Eman Abdullah AlOmar (ORCID: https://orcid.org/0000-0003-1800-9268)
- Michael J. Decker (ORCID: https://orcid.org/0000-0001-8505-1517)
- Marcos Zampieri
- Brandon Scholten
- Syreen Banabilah
Institutions
- Stevens Institute of Technology (US)
- University of Akron (US)
- University of Hawaiʻi at Mānoa (US)
- Prince Sultan University (SA)
- Kent State University (US)
- Rochester Institute of Technology (US)
- Bowling Green State University (US)
- George Mason University (US)
- University of Michigan–Flint (US)
Publication Details
- Published
- 2025-04-27
- DOI
- https://doi.org/10.1109/icpc66645.2025.00045
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00