Emotions have played a major part in the conversation, as they express context to the conversation. Text or words in conversation contain contextual and lexical meanings. In recent times, obtaining emotion from the text has been an attractive area of research. With the emergence of machine learning (ML) algorithms and hardware to aid the ML method, identifying emotion from the text with ML provides significant and promising solutions. The main objective of Textual Emotion Analysis (TEA) is to analyze and extract the user’s emotional states in the text. Many different Complex Systems and Deep Learning (DL) algorithms have been fast-paced developed and proved their effectiveness in several fields including audio, image, and natural language processing (NLP). This has moved researchers away from the classical ML to DL for their academic research work. This study develops a new Corpus Linguistics and Data-Driven Deep Learning for Textual Emotion Analysis (CLD3L-TEA) technique. The CLD3L-TEA technique mainly investigates the distinct types of emotions that endure in the social media text. In the CLD3L-TEA model, the raw data can be pre-processed in distinct ways. Next, a multi-weighted TF–IDF model is used to generate feature vectors. For the identification of emotions, the CLD3L-TEA technique applied a gated recurrent unit (GRU). At last, the hyperparameter range of the GRU model is executed by the Fractal Harris Hawks Optimization (HHO) model. The experimental validation of the CLD3L-TEA technique on a benchmark dataset illustrates the supremacy of this technique over recent approaches.