Skip to content

The Programming Language of Virtual Assistants

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

jrflat/thingtalk

 
 

ThingTalk

Build Status Coverage Status Dependency Status Greenkeeper badge Language grade: JavaScript

The Programming Language of Virtual Assistants

ThingTalk is the declarative (rule-based) distributed programming language for virtual assistants. It connects to multiple web services and IoT devices in a single when-get-do statement.

For example, in ThingTalk you can say:

monitor (@com.washingtonpost.get_article(section=enum(world))) => @com.yandex.translate.translate(target_language="zh"^^tt:iso_lang_code) on (text=title) =>
@com.facebook.post(status=$event);

This program automatically monitors Washington Post headlines, translates them to Chinese, and then posts them on Facebook. It does so by referring to primitives defined in Thingpedia, an open-source crowdsourced repository of APIs and metadata.

ThingTalk the language component of the Almond virtual assistant. You can find a guide to the ThingTalk language on the Almond website.

This package contains the grammar, the compiler of the language, the interface to analyze programs using SMT, the code to translate from ThingTalk to natural language, part of the ThingTalk runtime, and various libraries to manipulate ThingTalk ASTs.

While this library is useful on its own for specific purposes, to run ThingTalk programs you will need a full Almond runtime, such as one provided by almond-cloud or almond-cmdline.

Almond is a research project led by prof. Monica Lam, from Stanford University. You can find more information at https://almond.stanford.edu

License

This package is covered by the GNU General Public License, version 3 or any later version. See LICENSE for details.

Versioning

This package does not follow semantic versioning. Instead, the version should be interpreted as:

  • Major version will be bumped for incompatible changes in the language, such that existing valid programs are no longer valid
  • Minor version will be bumped for any change in the library, such as AST definitions, interfaces to compilation/optimization passes, adding and removing additional processing modules
  • Patch version will be bumped for compatible bug fixes

Minor version bumps can introduce incompatibility to library users; it is recommended that library users use tilde version ranges on their ThingTalk dependency, or use a service such as Greenkeeper to check for incompatibilities when a new version of the ThingTalk library is published.

About

The Programming Language of Virtual Assistants

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%