Code Monkey home page Code Monkey logo

substitutions's Introduction

Substitutions

Default substitution files for use on Pandorabots. Refer to the blog post for a more detailed explanation of usage.

normal.substitution

Performs normalization procedures on input strings ("pre-processing").

<category>  
<pattern>SAY *</pattern>  
<template><star/></template>  
</category>  

Input: Say pandorabots.com
Output: pandorabots dot com

denormal.substitution

Reverses steps taken in normalization procedures.

<category>  
<pattern>TAKE ME TO *</pattern>  
<template>Redirecting to <denormalize><star/></denormalize></template.  
</category>  

Input: Take me to pandorabots.com.
Output: Redirecting to pandorabots.com

person.substitution

Transforms pronouns between first and second person.

<category>  
<pattern>YOU ARE *</pattern>  
<template>I am <person><star/></person></template>  
</category>  

Input: You are waiting for me.
Output: I am waiting for you.

person2.substitution

Transforms pronouns between first and third person.

<category>  
<pattern>GIVE THE * TO *</pattern>  
<template>User has asked me to give the <star/> to <person2><star index="2"/></person2></template>  
</category>  

Input: Give the password to me.
Output: User has asked me to give the password to him or her.

gender.substitution

Transforms gender pronouns between male and female.

<category>  
<pattern>DOES IT BELONG TO *</pattern>  
<template>No, it belongs to <gender><star/></gender></template>  
</category>  

Input: Does it belong to him?
Output: No, it belongs to her.

substitutions's People

Contributors

djfdev avatar pandorabots-admin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.