{"id":18053906,"url":"https://github.com/danielstern/lisa","last_synced_at":"2025-07-23T18:39:04.481Z","repository":{"id":10798552,"uuid":"13070116","full_name":"danielstern/Lisa","owner":"danielstern","description":"A JavaScript Neuro-Computational Matrix","archived":false,"fork":false,"pushed_at":"2013-10-06T00:07:14.000Z","size":1308,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T15:50:56.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielstern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-24T16:18:44.000Z","updated_at":"2013-10-06T00:07:19.000Z","dependencies_parsed_at":"2022-09-01T22:51:32.498Z","dependency_job_id":null,"html_url":"https://github.com/danielstern/Lisa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielstern%2FLisa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielstern%2FLisa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielstern%2FLisa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielstern%2FLisa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielstern","download_url":"https://codeload.github.com/danielstern/Lisa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247307330,"owners_count":20917450,"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":"2024-10-31T00:08:29.725Z","updated_at":"2025-04-05T08:21:56.830Z","avatar_url":"https://github.com/danielstern.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lisa\n====\n## A Simple Lisa Example\nHere a Lisa is programmed to think she is Jack from various fairy tales.\n[http://www.danielstern.ca/lisa]\n\n## Short Term Memory\n\n- Prevents Lisa from saying the same thing twice, rambling, etc.\n- When Lisa says something, she stores the thought in her short term memory.\n\nBefore Lisa says something, she can see in her short term memory if she's said something.\n\n```javascript\nif (brain.memory.short.recall(thought)) {\n  brain.host.thinks(\"Oh, I just said that, didn't I... \");\n  return;\n};\n```\n\n### `recall(thought)` \nReturns true if Lisa remembers saying the thought.\n\n    brain.ponder('merlin');\n    // LISA: Merlin is a wizard.\n    brain.memory.short.recall('Merlin is a wizard.')\n    // true;\n\n### `scan(word)` \nReturns true if Lisa remembers having said that word at all within her short term memory.\n\n    brain.memory.short.scan('profession');\n    // false;\n    brain.ponder();\n    // LISA: My profession is spokesmatrix, honey.\n    brain.memory.short.recall('profession');\n    // true;\n\n### `remember(thought)` \nLisa remembers a thought for future recollection\n\n    brain.memory.short.remember('kill bill');\n    // lisa remembers to kill bill;\n\n## Long Term Memory:\nLisa's long term memories and personality that persist past the current session. Can use a database or local storage.\n\n+ Lisa can add new ideas and connections to her lexicon with her long term memory\n+ Lisa can remember things you were talking about in the past and reminisce about them\n\nLong term memory is where Lisa stores **stories** which are the basis of her neuro-computational matrix.\n\n## Lexicon\nThe Lexicon is an interchangeable module containing interrelating words and ideas. \n\n```javascript\nvar Lexicon = {\n  things:[\n    {\n      word:'orange',\n      extends:['fruit'],\n      plural:'oranges',\n    },\n  ]\n}\n```\n\n### Fetching Words from Levixon\n\n```\nlexicon.getWord('road')\n/*\n{\n  word:'road',\n  plural:'roads',\n  extends:['place'],\n}\n*/\n```\n\n### Things\nThings in the lexicon represent nouns and are usually the subject or object in a moment.\n\n```javascript\n{\n  word:'knight',\n  gender:'male',\n  extends:['warrior','person','soldier'],\n  plural:'knights',\n}\n```\n\n### Attributes\nAttributes are applied to things in the lexicon.\n\n```javascript\n{\n  word:'brave',\n  when:[\n    {action:'kill',object:'monster',applies:'subject'}\n  ],\n  form:'adjective'\n  synonyms:['heroic','fearless']\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielstern%2Flisa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielstern%2Flisa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielstern%2Flisa/lists"}