Skip to content

An AIML interpreter library for .NET Standard and console applications

License

Notifications You must be signed in to change notification settings

WilliamWishart/AIML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}");
}

About

An AIML interpreter library for .NET Standard and console applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%