While you sleep, one can add some lines to this basic intelligence code.
The basic of this coding is:
- it has to be very basic: A B C D sentences, with A subject and B complement (in right order at beginning)
- it has to be coded in bash or sh
- it can be elaborated, and is capable of learning
The code has to be the simplest as possible, since all is dictionary/database dependent. A can be verb (action / shell), or noun, or subject.
- 2 files only: the main code of the bash program and the database.
- it shall be capable to learn, e.g. type:
to add to main dictionary database
George say hello
George is e.g. the A.I.
Here is the start:
while [ 1 ] ; do
echo " "
printf ":> "
if [ "" != "$cmd" ] ; then
cat dico.txt | while read ii ; do
#echo "seen: $ii"
if [ `echo $ii | cut -f1 -d" "` == `echo $cmd | cut -f1 -d" "` ] ; then
if [ "n" == `echo $ii | cut -f2 -d" "` ] ; then
echo $ii | cut -f3-25 -d" "
if [ "v" == `echo $ii | cut -f2 -d" "` ] ; then
echo `echo $ii | cut -f3 -d" "` `echo $cmd | cut -f3 -d" "`
exec `echo $ii | cut -f3 -d" "` `echo $cmd | cut -f3 -d" "`
if [ "!learn" == "$cmd" ] ; then
printf "type, (n for noun and v for action,verb):"
if [ "$j" == "v" ] ; then
printf "word definition:"
echo "$i $j $k" >> dico.txt
if [ "!view" == "$cmd" ] ; then
if [ "!quit" == "$cmd" ] ; then
hello n hello
good n positive value
cat n lazy animal of human
dog n animal of human
pc n personal computer
linux n the best operating system
While you sleep, we work on it
Have Fun while coding !! That's the principle& idea !! Not research
Maybe we could have a pseudo - AI, at the end. Never dream, no one will never make it perfect, never, let's stop dreaming. Real A.I. is not possible, will be always bits.