#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.DefaultRuleSet().CaseSensitive(false); // Define multiple rules for different intents t.FromTo("play music by {artist}", "INTENT:PLAY_MUSIC ARTIST:{artist}"); t.FromTo("play the song {song_title}", "INTENT:PLAY_MUSIC SONG:{song_title}"); t.FromTo("set an alarm for {time}", "INTENT:SET_ALARM TIME:{time}"); cout << t.Transform("play music by Queen") << endl; cout << t.Transform("play the song Bohemian Rhapsody") << endl; cout << t.Transform("set an alarm for 7 am") << endl; }