Skip to content

luciangreen/mindreader

Repository files navigation

Notice

Mindreader produces vague mind reading results, that remind you of your thoughts but are not actually your thoughts.

Mindreader

Getting Started

Please read the following instructions on how to install the project on your computer for mind reading.

Prerequisites

  • Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.

1. Install manually

Download this repository, the List Prolog Interpreter repository and the Text to Breasonings Repository.

2. Or Install from List Prolog Package Manager (LPPM)

mkdir GitHub
cd GitHub/
git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
cd List-Prolog-Package-Manager
swipl
['lppm'].
lppm_install("luciangreen","mindreader").
halt

Caution

Please follow instructions in init.txt to initialise any new mind-reading algorithms.

Running Mind Reader from Decision Tree

cd mindreader

['../Music-Composer/mindreadtestmusiccomposer-unusual-mr-tree.pl'].
mind_read(A,[option1,option2]).

Also to run

Additional instructions for preparing to run screen projector: Breason out songs used to help project pixels. In Shell: cd mindreader

In swipl:

['../Text-to-Breasonings/text_to_breasonings.pl'].
texttobr2(u,"file-songs.txt",u,u,false,false,false,false,false,false).
texttobr(u,"file-songs.txt",u,u).

In Shell: cd ../mindreader In swipl:

['postsong'].
postsong(10).  %% For ten songs

Write a spiritual letter to your federal government (with a done up A per sentence) to activate the technology. In Shell: cd mindreader In swipl:

['../Text-to-Breasonings/text_to_breasonings.pl'].
texttobr2(u,"letter.txt",u,u,false,false,false,false,false,false).
texttobr2(u,"file-letter.txt",u,u,false,false,false,false,false,false).

In the following, 1 is the number of times the person has a creation A, 80 is the number of years the person has daily connections for mind reading. If the person is a bot you can't see, it will work.

N is 1*16+80*365*16,texttobr2(N).

Display a spiritual screen with 'A' above the screen.

['screen.pl'].
sectest0.

Running Recognise you thinking of objects In Shell: cd ../mindreader In swipl:

['mindreadtestobj-12scrn-2'].
sectest(1).

Replace 1 with the number of times to repeat algorithm.

Recognise you thinking of more objects

['mindreadtestobj-12scrn-2medit'].
sectest(1).

Replace 1 with the number of times to repeat algorithm.

Recognise you thinking of characters

['mindreadtestobj-12scrn-2chars'].
sectest(1).

Replace 1 with the number of times to repeat algorithm.

  • If necessary, repeat the "arem" mantra all the time while the mind reading computation is running to ensure the best results.

Mind Reading Tree

  • The Mind Reading tree algorithm converts a list of strings into a decision tree and removes nodes with a single child.
['make_mind_reading_tree4 working1.pl'].

make_mind_reading_tree4(["aqa","awx","awy"],Tree),writeln1(Tree).

Tree = [[1,"a",2],[2,"q",[-,"aqa"]],[2,"w",9],[9,"x",[-,"awx"]],[9,"y",[-,"awy"]]]
  • This is accomplished by converting a list of strings into a decision tree:
string_to_list1(["aqa","awx","awy"],1,_,[],Options2),
maplist(append,[Options2],[Tree]),writeln1(Tree).

Tree = [[1,"a",2],[2,"q",3],[3,"a",[-,"aqa"]],[1,"a",5],[5,"w",6],[6,"x",[-,"awx"]],[1,"a",8],[8,"w",9],[9,"y",[-,"awy"]]]
  • Merging the branches of the decision tree:
merge_lists_a([1],[[1,"a",2],[2,"q",3],[3,"a",[-,"aqa"]],[1,"a",5],[5,"w",6],[6,"x",[-,"awx"]],[1,"a",8],[8,"w",9],[9,"y",[-,"awy"]]],[],MergedTree),writeln1(MergedTree).

MergedTree = [[1,"a",2],[2,"q",3],[2,"w",9],[3,"a",[-,"aqa"]],[9,"x",[-,"awx"]],[9,"y",[-,"awy"]]]
  • And removing nodes with a single child:
remove_chains_of_one_child_a([1],[[1,"a",2],[2,"q",3],[2,"w",9],[3,"a",[-,"aqa"]],[9,"x",[-,"awx"]],[9,"y",[-,"awy"]]],[],ShortTree),writeln1(ShortTree).

ShortTree = [[1,"a",2],[2,"q",[-,"aqa"]],[2,"w",9],[9,"x",[-,"awx"]],[9,"y",[-,"awy"]]]
  • (Transition [2,"w",9] is followed by 2 children, so is kept.)

Versioning

We will use SemVer for versioning.

Authors

Lucian Green - Initial programmer - Lucian Academy

License

I licensed this project under the BSD3 License - see the LICENSE.md file for details

About

Contains Prolog programs that can be used by an individual to read their mind using meditation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages