Extending the Vocabulary of Fictional Languages using Neural Networks

Thomas Zacharias, Ashutosh Taklikar, Raja GiryesarXiv 2022 · arXiv

Introduction

Fictional languages, or conlangs, are essential for immersive world-building in literature and film. However, creating a comprehensive lexicon is a daunting task. Most authors develop only a "naming language"—a small glossary of a few hundred words—leaving the language incomplete. Researchers from Tel Aviv University have addressed this by developing a deep learning framework to automatically expand these limited vocabularies. By leveraging style transfer and Seq2Seq models on datasets as small as 200 words, they can generate new, phonetically consistent words that preserve the unique "feel" of the original creation.

Methodology

The research explores three neural architectures to capture the phonetic and morphological "style" of a language at the character level:

  1. RNN Baseline: A character-level Recurrent Neural Network that learns sequence probability distributions.
  2. Seq2Seq with Attention: An encoder-decoder model using Gated Recurrent Units (GRUs) that treats vocabulary expansion as a translation task from English to the target conlang.
  3. Style Transfer (Cross-Alignment): The most innovative approach, based on the work of Shen et al. (2017). It uses a shared latent space to align English content with the fictional language's style, allowing the model to learn from the vast English lexicon while adhering to the narrow constraints of the conlang.
Cross Alignment architecture for style transfer

Notably, Transformer models were found to be ineffective in this "Small Data" regime, as their attention mechanisms typically require much larger datasets to converge.

Experimental Setup

To validate these models, the researchers utilized several datasets:

  • English-Hebrew Proxy: Using the 850 most common English words and their Hebrew translations allowed for quantitative measurement of the model's ability to "predict" real words it hadn't seen.
  • Multilingual Generalization: Tests were conducted on translations into Arabic, Hindi, Spanish, Amharic, and Russian to ensure the methodology was not language-specific.
  • The Ancient Language: A real-world application using the ~400-word vocabulary created by Christopher Paolini for the Inheritance Cycle.

Linguistic Insights

A key conceptual breakthrough was treating phonology as a "style" that can be transferred, similar to artistic filters in computer vision. This allows the model to capture the specific aesthetic—be it the harshness of Klingon or the fluidity of Elvish. Furthermore, the models demonstrated an emergent ability to maintain root-word consistency (e.g., generating related fictional words for "understand" and "understanding") without explicit morphological supervision.

Results and Evaluation

The models were evaluated through quantitative metrics and a human user study involving 48 judges. The Style Transfer model proved particularly effective, successfully generating 191 "pre-existing" Hebrew words it had never encountered during training.

Quantitative and qualitative performance metrics for the evaluated models

As shown in the evaluation data, the Style Transfer model produced the highest number of Total Unique Words (TUW), reaching 1086 from a small starting set. In human evaluations, both Seq2Seq and Style Transfer models achieved mean scores above 3.0 on a 5-point scale for "naturalness," indicating that the generated words successfully mimicked the patterns of real or established fictional languages.

Conclusion

While the current framework effectively expands lexicons, it does not yet address grammar, syntax, or complex conjugations. Future work may involve "seeding" models with real-world languages that inspired the fiction to provide a more robust morphological foundation. Nevertheless, this approach offers a powerful tool for creators to flesh out their worlds with linguistically consistent and expansive vocabularies.

Summary updated

Abstract

Fictional languages have become increasingly popular over the recent years appearing in novels, movies, TV shows, comics, and video games. While some of these fictional languages have a complete vocabulary, most do not. We propose a deep learning solution to the problem. Using style transfer and machine translation tools, we generate new words for a given target fictional language, while maintaining the style of its creator, hence extending this language vocabulary.
BibTeX
@misc{zacharias2022extending,
  author = {Thomas Zacharias and Ashutosh Taklikar and Raja Giryes},
  title = {{Extending the Vocabulary of Fictional Languages using Neural Networks}},
  year = {2022},
  eprint = {2201.07288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.07288},
}
Figure