/AIML

An AIML interpreter library for .NET Standard and console applications

Primary LanguageC#MIT LicenseMIT

AIML (working title)

This is a .NET Standard library and accompanying software for running chat robots using Artificial Intelligence Markup Language.

The following directories are included in this repository:

  • Aiml: the core library
  • AimlConsoleBot: a basic .NET Core AIML interpreter
  • AimlTester: a console application that runs AIML unit tests (a non-standard AIML extension)
  • AimlVoice: an AIML interpreter using Windows Speech Recognition and text-to-speech features
  • ExampleBot: a sample set of AIML and configuration files for use with the AIML library

Example usage

using Aiml;

var bot = new Bot(botPath);
bot.LoadConfig();
bot.LoadAIML();

var user = new User("User", bot);
while (true) {
	Console.Write("> ");
	var message = Console.ReadLine();
	var response = bot.Chat(new Request(message, user, bot), trace);
	Console.WriteLine($"{bot.Properties.GetValueOrDefault("name", "Robot")}: {response}");
}