Kent State University
Part-of-Speech Tagging of Source Code Identifiers using Programming Language Context Versus Natural Language Context
Abstract
dc:descriptionAn approach to identify the part of speech for program identifiers is proposed. The approach does not rely on natural language part-of-speech tagging, rather it uses rules based on the programming language syntax, along with static analysis, to determine the grammatical usage of identifiers. A set of new grammatical rules for identifier part-of-speech that are analogous to natural language part-of-speech is defined. These rules are based on the syntactical context of an identifier’s usage in the source code. Additionally, static analysis is used to automatically determine the stereotype of methods in the source code. The stereotype information is also used to infer the part-of-speech of identifiers that represent method calls. The approach is fully automated and is built upon an existing source code format and parsing technology (i.e. srcML). The tagging process adds the part-of-speech meta data directly into the srcML format. This allows for seamless interoperability with other program understanding tools and methods that utilize the part-of-speech information. The approach is evaluated by comparing the results of the tagging on ten open source software projects. The results of the evaluation demonstrate that the proposed part of speech approach consistently model how identifiers are used in software systems.
Degree
thesis:*- Name thesis:degree_name
- MS
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- College of Arts and Sciences / Department of Computer Science
- Grantor dc:publisher
- Kent State University
- Year dc:date
- 2015
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- AlSuhaibani, Reem Saleh
- Advisor dc:contributor.advisor
-
- Maletic, Jonathan
Subjects
dc:subject × 13Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=kent1448502094