• DocumentCode
    3235491
  • Title

    Normalizing Source Code Vocabulary

  • Author

    Lawrie, Dawn ; Binkley, Dave ; Morrell, Christopher

  • Author_Institution
    Loyola Univ. Maryland, Baltimore, MD, USA
  • fYear
    2010
  • fDate
    13-16 Oct. 2010
  • Firstpage
    3
  • Lastpage
    12
  • Abstract
    Information Retrieval (IR) based tools complement traditional static and dynamic analysis tools by exploiting the natural language found within a program´s text. Tools incorporating IR have tackled problems, such as feature location, that previously required considerable human effort. However, to reap the full benefit of IR-based techniques, the language used across all software artifacts (e.g., requirement and design documents, test plans, as well as the source code) must be consistent. Vocabulary normalization aligns the vocabulary found in source code with that found in other software artifacts. Normalization both splits an identifier into its constituent parts and expands each part into a full dictionary word to match vocabulary in other artifacts. An algorithm for normalization is presented. Its current implementation incorporates a greatly improved splitter that exploits a collection of resources including several dictionaries, frequency distributions derived from the corpus of programs, and co-occurrence data. Empirical study of this new splitter, GenTest, on almost 8000 identifiers finds that it correctly splits 82%, outperforming the current state-of-the-art. A preliminary experiment with the normalization algorithm finds it improving the FLAT ̂ 3 feature locator´s scores of relevant code from 0.60 to 0.95 on a scale from 0 to 1.
  • Keywords
    information retrieval; natural languages; software engineering; source coding; GenTest; information retrieval; natural language; software artifact; source code vocabulary normalization; Dictionaries; Documentation; Google; Measurement; Natural languages; Software; Vocabulary; information retrieval; program comprehension; source code analysis tools;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Reverse Engineering (WCRE), 2010 17th Working Conference on
  • Conference_Location
    Beverly, MA
  • ISSN
    1095-1350
  • Print_ISBN
    978-1-4244-8911-4
  • Type

    conf

  • DOI
    10.1109/WCRE.2010.10
  • Filename
    5645479