Eliza-Chatbot

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

   "no_index" : {
      "directory" : [
         "t",
         "inc"
      ]
   },
   "prereqs" : {
      "build" : {
         "requires" : {
            "Array::Utils" : "0.5",
            "Ref::Util" : "0.002",
            "Test::More" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Const::XS" : "1.00",
            "Moo" : "1.0010001",
            "MooX::LazierAttributes" : "0.07",
            "Ref::Util" : "0.002",
            "perl" : "5.006",
            "strict" : "0",
            "warnings" : "0"
         }
      }
   },
   "provides" : {
      "Eliza::Chatbot" : {
         "file" : "lib/Eliza/Chatbot.pm",
         "version" : "0.12"

META.yml  view on Meta::CPAN

---
abstract: 'Eliza chatbot'
author:
  - 'Robert Acock <email@lnation.org>'
build_requires:
  Array::Utils: '0.5'
  Ref::Util: '0.002'
  Test::More: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.74, CPAN::Meta::Converter version 2.143240'
license: artistic_2
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Eliza-Chatbot

META.yml  view on Meta::CPAN

  Eliza::Chatbot::Brain:
    file: lib/Eliza/Chatbot/Brain.pm
  Eliza::Chatbot::Option:
    file: lib/Eliza/Chatbot/Option.pm
  Eliza::Chatbot::ScriptParser:
    file: lib/Eliza/Chatbot/ScriptParser.pm
requires:
  Const::XS: '1.00'
  Moo: '1.0010001'
  MooX::LazierAttributes: '0.07'
  Ref::Util: '0.002'
  perl: '5.006'
  strict: '0'
  warnings: '0'
resources:
  repository: https://github.com/ThisUsedToBeAnEmail/Eliza-Chatbot.git
version: '0.12'

Makefile.PL  view on Meta::CPAN

    LICENSE          => 'artistic_2',
    PL_FILES         => {},
    MIN_PERL_VERSION => 5.006,
    macro => { TARFLAGS   => "--format=ustar -c -v -f" },
    CONFIGURE_REQUIRES => {
        'ExtUtils::MakeMaker' => 0,
    },
    BUILD_REQUIRES => {
        'Test::More' => 0,
        'Array::Utils' => 0.5,
        'Ref::Util' => 0.0020,
    },
    PREREQ_PM => {
        'Moo'              => 1.0010001,
        'MooX::LazierAttributes' => 0.07,
        'Ref::Util' => 0.0020,
        'strict' => 0,
        'warnings' => 0,
        'Const::XS' => '1.00'
    },
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES => 'Eliza-Chatbot-*' },
    META_MERGE => {
        'meta-spec' => { version => 2 },
        resources => {
            repository => {

lib/Eliza/Chatbot/Brain.pm  view on Meta::CPAN

package Eliza::Chatbot::Brain;

use Moo;
use MooX::LazierAttributes;

use Ref::Util qw(is_scalarref is_blessed_arrayref);

attributes(
    decomp_matches => [rw, [ ], {lzy}],
    [qw/options last/] => [rw, nan, {lzy}],
);

sub preprocess {
    my ($self, $string) = @_;
    my @orig_words = split / /, $string;

t/03-script-parser.t  view on Meta::CPAN

#!perl -T

use strict;
use warnings;
use Test::More;
use feature 'say';
use Ref::Util qw(is_hashref is_arrayref);

BEGIN {
	use_ok( 'Eliza::Chatbot::ScriptParser' ) || print "Bail out!\n";
}

subtest 'test the base script' => sub {
	test_script({
        quit => 5,
        initial => 4,
        decomp => 48,



( run in 1.163 second using v1.01-cache-2.11-cpan-4d50c553e7e )