Skip to main content
European Social Fund Plus
SIM case study2025-06-13

Automatic metaphor identification in online texts about suicidal ideation

The aim of the project is to develop a computer platform that integrates generative large language models into the decision of where metaphorical expressions can be find in online texts about suicidal ideation. The development consists of prompting the language model to compare the basic meaning of the expression with its contextual meaning in the text, and then determining whether the use of the expression is considered metaphorical in the text. The language model builds on the lexicographic database of the Hungarian language recently released to determine the basic the contextual meaning, and makes the comparison based on the prompt given to it. Thus, the project aims at creating and refining an NLP tool for automatic metaphor identification that supports the large-scale data-driven exploration of presuicidal discourse.
Preliminary measurements showed an efficiency of around 80% for the most efficient language model on the test material. The aim of the project is to improve this efficiency and to develop an interface in which the language model performs the metaphorical analysis of expressions directly, without any special instructions from the user.
With the development of an effective tool for metaphor identification, the project paves the way for investigating the metaphor markers of presuicidal syndrome, and hence it serves the increase of suicide prevention through linguistic data processing.

Case study details

Lead organisation
Countries
Hungary
Themes
Better education and training systems
Equal access to social services
Modernisation of social protection systems
Target groups
Migrants and ethnic minorities
Individuals experiencing poverty or social exclusion
Other target groups
Level of action
National
Source of funding
Public - national
Budget
14.627.013 HUF
Project start
2025
Internet and social