{"id":27309567,"url":"https://github.com/parmentf/browser-ector","last_synced_at":"2025-04-12T05:30:58.335Z","repository":{"id":6276481,"uuid":"7510233","full_name":"parmentf/browser-ector","owner":"parmentf","description":"A learning chatterbot in HTML / Javascript (ECTOR)","archived":false,"fork":false,"pushed_at":"2015-03-01T20:26:38.000Z","size":1028,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-09T01:30:34.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://parmentf.github.io/browser-ector/ector.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parmentf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-08T22:09:48.000Z","updated_at":"2024-04-09T01:30:34.072Z","dependencies_parsed_at":"2022-09-09T09:02:24.485Z","dependency_job_id":null,"html_url":"https://github.com/parmentf/browser-ector","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmentf%2Fbrowser-ector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmentf%2Fbrowser-ector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmentf%2Fbrowser-ector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmentf%2Fbrowser-ector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parmentf","download_url":"https://codeload.github.com/parmentf/browser-ector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248523603,"owners_count":21118531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-12T05:30:57.696Z","updated_at":"2025-04-12T05:30:58.312Z","avatar_url":"https://github.com/parmentf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ECTOR\nA learning chatterbot in HTML / Javascript (ECTOR).\n\nThe browserified ([browserify](https://github.com/substack/node-browserify/)) version of [node-ector](https://github.com/parmentf/node-ector).\n\n## Installation\n\n### Get the files\nDownload the files: https://github.com/parmentf/browser-ector/archive/master.zip\n\nOr clone the repository:\n```bash\ngit clone https://github.com/parmentf/browser-ector.git\n```\n\n### Try it\nThen, drag and drop file ``browser-ector/ector.html`` into your browser\n(tested in Google Chrome 23, Firefox 18 and Chromium 20).\n\n### Put it in another application\nImport `js/bundle-ector.min.js`, `js/jquery-1.8.3.min.js`, `js/mustache.min.js`, and\n`js/ector.js` into your HTML page.\n\nTake a look at ``ector.js``, and adapt it to your web application.\n\nThe important part is:\n```javascript\nvar Ector = require('ector');\nector = new Ector();\n\nvar previousResponseNodes = null;\nector.addEntry(entry);\nector.linkNodesToLastSentence(previousResponseNodes);\nvar response = ector.generateResponse();\nconsole.log('%s: %s', ector.name, response.sentence);\npreviousResponseNodes = response.nodes;\n```\n\nYou can customize your Ector, using its parameters:\n```javascript\nector = new Ector('botname', 'username');\n```\nor using `setUser` method:\n```javascript\nector.setUser('newName');\n```\n\n## Demonstration\n\nYou can take a look at the example page, and [talk to\nECTOR](http://parmentf.github.com/browser-ector/ector.html) (name it `ECTOR`,\nit will recognize its name).\n\nAt this moment, your name is `Guy`, guy. OK?\n\n## Release History\n* 2013/01/27: version 0.1.6: update to ector 0.1.6 (bug fixes)\n* 2013/01/17: version 0.1.5: update to ector 0.1.4 (bug fixes)\n* 2013/01/11: version 0.1.4: change your name\n* 2013/01/09: version 0.1.3: add save/load in the example\n* 2013/01/09: version 0.1.2: fix Firefox's version\n* 2013/01/08: version 0.1.0: first release\n\n## License\nCopyright (c) 2013 François Parmentier \u003cfrancois.parmentier@gmail.com\u003e\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmentf%2Fbrowser-ector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparmentf%2Fbrowser-ector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmentf%2Fbrowser-ector/lists"}