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 reddit.com/r/cpp

Our great sponsors
  • Sonar - Write Clean C++ Code. Always.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • 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..

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • 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