The detection of lung cancer is a critical fact or in enhancing patient survival rates. The integration of intelligent computer-aided systems can significantly aid radiologists in this endeavor. The present study centers on the development of a machine learning-oriented methodology aimed at detecting lung cancer through the analysis of text-based medical data extracted from authentic medical reports. The present dataset encompasses a range of machine-learning algorithms that have been utilized for binary classification purposes. The findings of this study indicate the capability of machine learning algorithms in the prompt identification of lung cancer, thereby facilitating enhanced diagnosis and timely intervention.