Skip to main navigation Skip to search Skip to main content

Using Multinomial Naive Bayes Machine Learning Method to Classify, Detect, and Recognize Programming Language Source Code

  • University of Oldenburg

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

7 Scopus citations

Abstract

Processing programming languages are very similar to processing natural languages, especially high-level languages such as Python, Java, C#, C, C++, and others. Therefore, the natural language processing concepts can be applied as one of the most important branches of artificial intelligence in detecting, recognizing, and classification scripts written in different programming languages. The programming language script classification can be counted as a classical machine learning problem. This research aims to present a model using Multinomial Naïve Bayes (MNB) artificial intelligence algorithm to identify and classify the programming language used in writing the source code file provided as an input for the proposed model. A set of categorized files containing source codes will be used in training the proposed model, and then the model will be able to automatically detect and classify a new script into one of the already trained categories. The machine learning method called NB Multinomial will be used to implement this matter. This work is very important for Mufti-programming language editors such as Visual Studio Code, Notepad+, and others, where the user can paste the source code, and the editor will recognize the programming language automatically.

Original languageEnglish
Title of host publicationProceedings - 2022 23rd International Arab Conference on Information Technology, ACIT 2022
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798350320244
DOIs
StatePublished - 2022
Event23rd International Arab Conference on Information Technology, ACIT 2022 - Abu Dhabi, United Arab Emirates
Duration: 22 Nov 2022 → 24 Nov 2022

Publication series

NameProceedings - 2022 23rd International Arab Conference on Information Technology, ACIT 2022

Conference

Conference23rd International Arab Conference on Information Technology, ACIT 2022
Country/TerritoryUnited Arab Emirates
CityAbu Dhabi
Period22/11/22 → 24/11/22

Keywords

  • Machine Learning
  • Multinomial Naive Bayes
  • Programming Language
  • Source Code Detection

Fingerprint

Dive into the research topics of 'Using Multinomial Naive Bayes Machine Learning Method to Classify, Detect, and Recognize Programming Language Source Code'. Together they form a unique fingerprint.

Cite this