In question-answering systems, question classification is a fundamental task. Identifying the accurate question type enhances the retrieval of more accurate answers. Factoid questions are the most challenging type of question to classify in which many approaches have been proposed with the objective of enhancing the classification of this type of question. In this paper, a grammar-based framework is used. The framework makes use of three main features which are, grammatical features, domain specific features and patterns. Using machine learning algorithms for the classification process, experimental results show that our approach has a good level of accuracy.