Are there any C++ libraries that provide tools for composing English language sentences?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • tracerz

    A modern C++ (C++17) procedural generation tool based on @galaxykate's tracery

  • The best match I've found so far is https://github.com/caranatar/tracerz, which can help a lot, but it intended for use with random values, and I would have to handle some of the higher-level connections myself, like linking pronouns with pluralization, and handling past/present/future tenses on my own. I'm not afraid to do this, but I want to explore my options.

  • fluent.js

    JavaScript implementation of Project Fluent

  • Even if you're not planning to translate your game into other languages, it might be worth looking into one of the localisation systems. For example, Mozilla's Fluent handles pluralisation, gender, etc..

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Cataclysm

    A post-apocalyptic roguelike. New features relative to C:Whales are scheduled for after 0.2.0, the savefile breaking release. (by zaimoni)

  • I would not be averse to a library that fully developed this. However, that definitely is "hard mode". I haven't looked around carefully. (Gettext is not an option for the Cataclysm family of games -- as a copyleft license, GPL is incompatible with all other licenses that impose material restrictions, such as Creative Commons Share-Alike.)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts