Back to search

Monterey, CA; Naval Postgraduate School

METAPHOR DETECTION AND TRANSLATION FOR AUTOMATED LANGUAGE FORMALIZATION IN HYNOLU

Abstract

dc:description.abstract

The Hybrid Neuro-Ontological Language Understanding (HyNOLU) project is designed to automatically transform natural language into formal logic statements, enabling machines to reason over a curated ontology. This research focuses on the metaphor detection and resolution component of the project’s pre-processing pipeline, which identifies metaphors in natural language and translates them into literal, metaphor-free interpretations. By eliminating metaphor from the input, this module allows HyNOLU to formalize the language into logic more reliably. The study developed a metaphor resolution pipeline by adapting a transformer-based metaphor detector trained on a benchmark metaphor dataset and leveraging a large language model (LLM) to generate batches of candidate translations. The best candidate was selected based on its similarity to the original sentence and the presence of residual metaphors detected. Performance was evaluated by re-detecting metaphors in the output and using a standard dataset of metaphorical-literal sentence pairs to measure similarity between the module’s output and the dataset’s literal sentence. The pipeline produced translations with strong similarity to the reference literals, completely eliminated metaphors from 78% of sentences, and reduced metaphors at a rate of 90%. Future work should explore chain-of-thought prompting, experiment with other LLMs, improve approaches to measure similarity, and incorporate higher-performing metaphor detectors.

Degree

thesis:*
Name thesis:degree_name
Master of Science in Computer Science
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Department dc:contributor.department
Computer Science (CS)
Grantor dc:publisher
Monterey, CA; Naval Postgraduate School
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Singley, Jarrad B.
Advisor dc:contributor.advisor
  • Pease, R A.
Committee member dc:contributor.committeemember
  • Xie, Geoffrey G.

Rights

dc:rights
Statement dc:rights
  • This publication is a work of the U.S. Government as defined in Title 17, United States Code, Section 101. Copyright protection is not available for this work in the United States.
  • Distribution Statement A. Approved for public release: Distribution is unlimited.

Identifiers

dc:identifier.*
Dc Identifier Programcode
368, Computer Science
Thesis Thesis Identifier
41183

Chain of custody

source
Harvested from
Naval Postgraduate School
Base URL
calhoun.nps.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Singley, Jarrad B.. METAPHOR DETECTION AND TRANSLATION FOR AUTOMATED LANGUAGE FORMALIZATION IN HYNOLU. Masters thesis, Monterey, CA; Naval Postgraduate School, 2025. https://hdl.handle.net/10945/74728