Coder Social home page Coder Social logo

tmycin-expert-system's Introduction

TMYCIN-Expert-System

A simple AI tool designed to assist in selecting the best plants for landscaping in Texas. This expert system leverages the TMycin framework to provide recommendations based on various plant characteristics and environmental conditions.

Possible Inputs Attributes/Features

Region:

  • The region where the plant is found.
  • Expected values: (A, B, C, D, E, F, G, H)

Color:

  • The colors of the plant's flowers.
  • Expected values: (TAN, BROWN, BLACK, GREY, GREEN, PINK, RED, YELLOW, ORANGE)

Size:

  • The approximate size of the plant.
  • Expected values: (TINY, SMALL, MEDIUM, LARGE, HUGE)

Type:

  • The type of plant.
  • Expected values: (TREE, SHRUB, HERB, GRASS)

Period:

  • The time of year when the plant flowers.
  • Expected values: (SPRING, SUMMER, FALL, WINTER)

Exposure:

  • The amount of sunlight the plant needs.
  • Expected values: (SUN, PARTIAL-SUN)

Features:

  • Observed features of the plant.
  • Expected values: (THORNS, FLOWERS, BERRIES, EDIBLE)

Behavior:

  • Observed behaviors or stages of the plant.
  • Expected values: (BLOOMING, FRUITING)

Edible:

  • Whether the plant is edible
  • Expected values: (Yes, No)

Usage

(load "tmycin.lsp")
(load "plants.lsp")
(doconsult)

Example Session

>(load "tmycin.lsp")
;; Loading "tmycin.lsp"
;; Finished loading "tmycin.lsp"
T

>(load "plants.lsp")
;; Loading "plants.lsp"
;; Loading "tmycin.lsp"
;; Finished loading "tmycin.lsp"
;; Finished loading "plants.lsp"
T

>(doconsult)


What is the REGION of PLANT0?
    What is the region for the plant?
    multiple regions, use the following format:
    Region A: Panhandle and High Plains
    Region B: North and Central Texas
    Region C: Northeast and Central Texas
    Region D: West Texas
    Region E: Upper Rio Grande
    Region F: Hill Country and Central Coast
    Region G: Southeast Texas
    Region H: Rio Grande Valley
    Expected values are: (A B C D E F G H)

>a
What is the COLOR of PLANT0?
    List the colors of the flowers. If there are
    multiple colors, use the following format:
    ((color 1.0) ...), for example,
    ((RED 1.0) (YELLOW 1.0) (GREEN 1.0))
    Expected values are: (TAN BROWN BLACK GREY GREEN PINK RED YELLOW
                              ORANGE)

>yellow
What is the SIZE of PLANT0?
    Give the approximate size of the plant.
    tiny = 6 inches or less, small = 7-18 inches,
    medium = 19-36 inches, large = 37-120 inches,
    huge = over 120 inches.
    Expected values are: (TINY SMALL MEDIUM LARGE HUGE)

>huge
What is the TYPE of PLANT0?
    What type of plant is it?
    tree = woody plant with a single trunk
    shrub = woody plant with multiple stems
    herb = non-woody plant
    grass = grass-like plant
    Expected values are: (TREE SHRUB HERB GRASS)

>tree
What is the PERIOD of PLANT0?
    What is the time of year when the plant flowers?
    Expected values are: (SPRING SUMMER FALL WINTER)

spring
What is the EXPOSURE of PLANT0?
    How much sunlight does it need?
    tree = woody plant with a single trunk
    shrub = woody plant with multiple stems
    herb = non-woody plant
    grass = grass-like plant
    Expected values are: (SUN PARTIAL-SUN)

>sun
What is the FEATURES of PLANT0?
    Enter features observed about the plant,
    or UNK if unknown or absent
    Expected values are: (THORNS FLOWERS BERRIES EDIBLE)

>(unknown)
What is the BEHAVIOR of PLANT0?
    Enter any observed behaviors or stages,
    Expected values are: (BLOOMING FRUITING)

>blooming
Is EDIBLE true of PLANT0?
    Expected values are: Yes/No

>(unknown)


The conclusions for PLANT0 are as follows:


IDENTITY :  BLACK-WILLOW (1.00)


LATIN-NAME :  Salix nigra (1.00)


EDIBLE :
PLANT0

>

tmycin-expert-system's People

Contributors

deviloxide avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.