AI-ExpertSystem-Simple
view release on metacpan or search on metacpan
examples/Animal.xml view on Meta::CPAN
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>clam/oyster</value>
</action>
</actions>
</rule>
<rule>
<name>64</name>
<conditions>
<condition>
<attribute>genus</attribute>
<value>noshell</value>
</condition>
<condition>
<attribute>bivalve</attribute>
<value>no</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>squid/octopus</value>
</action>
</actions>
</rule>
<rule>
<name>65</name>
<conditions>
<condition>
<attribute>nearly.hairless</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>notail</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>man</value>
</action>
</actions>
</rule>
<rule>
<name>66</name>
<conditions>
<condition>
<attribute>nearly.hairless</attribute>
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>notail</value>
</condition>
</conditions>
<actions>
<action>
<attribute>subspecies</attribute>
<value>hair</value>
</action>
</actions>
</rule>
<rule>
<name>67</name>
<conditions>
<condition>
<attribute>species</attribute>
<value>400</value>
</condition>
<condition>
<attribute>land.based</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>bear/tiger/lion</value>
</action>
</actions>
</rule>
<rule>
<name>68</name>
<conditions>
<condition>
<attribute>species</attribute>
<value>400</value>
</condition>
<condition>
<attribute>land.based</attribute>
<value>no</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>walrus</value>
</action>
</actions>
</rule>
<rule>
<name>69</name>
<conditions>
<condition>
<attribute>thintail</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>under400</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>cat</value>
</action>
</actions>
</rule>
<rule>
<name>70</name>
<conditions>
<condition>
<attribute>thintail</attribute>
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>under400</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>coyote/wolf/fox/dog</value>
</action>
</actions>
</rule>
<rule>
<name>71</name>
<conditions>
<condition>
<attribute>one.horn</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>horns</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>hippopotamus</value>
</action>
</actions>
</rule>
<rule>
<name>72</name>
<conditions>
<condition>
<attribute>one.horn</attribute>
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>horns</value>
</condition>
</conditions>
<actions>
<action>
<attribute>subspecies</attribute>
<value>nohorn</value>
</action>
</actions>
</rule>
<rule>
<name>73</name>
<conditions>
<condition>
<attribute>lives.in.desert</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>nohorns</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>camel</value>
</action>
</actions>
</rule>
<rule>
<name>74</name>
<conditions>
<condition>
<attribute>lives.in.desert</attribute>
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>nohorns</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>giraffe</value>
</action>
</actions>
</rule>
<rule>
<name>75</name>
<conditions>
<condition>
<attribute>large.ears</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>teeth</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>rabbit</value>
</action>
</actions>
examples/Animal.xml view on Meta::CPAN
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>teeth</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>rat/mouse/squirrel/beaver/porcupine</value>
</action>
</actions>
</rule>
<rule>
<name>77</name>
<conditions>
<condition>
<attribute>pouch</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>species</attribute>
<value>noteeth</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>kangaroo/koala.bear</value>
</action>
</actions>
</rule>
<rule>
<name>78</name>
<conditions>
<condition>
<attribute>pouch</attribute>
<value>no</value>
</condition>
<condition>
<attribute>species</attribute>
<value>noteeth</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>mole/shrew/elephant</value>
</action>
</actions>
</rule>
<rule>
<name>79</name>
<conditions>
<condition>
<attribute>long.powerful.arms</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>subspecies</attribute>
<value>hair</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>orangutan/gorilla/chimpanzie</value>
</action>
</actions>
</rule>
<rule>
<name>80</name>
<conditions>
<condition>
<attribute>long.powerful.arms</attribute>
<value>no</value>
</condition>
<condition>
<attribute>subspecies</attribute>
<value>hair</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>baboon</value>
</action>
</actions>
</rule>
<rule>
<name>81</name>
<conditions>
<condition>
<attribute>fleece</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>subspecies</attribute>
<value>nohorn</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>sheep/goat</value>
</action>
</actions>
</rule>
<rule>
<name>82</name>
<conditions>
<condition>
<attribute>fleece</attribute>
<value>no</value>
</condition>
<condition>
<attribute>subspecies</attribute>
<value>nohorn</value>
</condition>
</conditions>
<actions>
<action>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</action>
</actions>
</rule>
<rule>
<name>83</name>
<conditions>
<condition>
<attribute>domesticated</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>cow</value>
</action>
</actions>
</rule>
<rule>
<name>84</name>
<conditions>
<condition>
<attribute>domesticated</attribute>
<value>no</value>
</condition>
<condition>
<attribute>subsubspecies</attribute>
<value>nofleece</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.animal</attribute>
<value>deer/moose/antelope</value>
</action>
</actions>
</rule>
</rules>
<questions>
<question>
<attribute>long.powerful.arms</attribute>
<text>Does your animal have long, powerful arms?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>lives.in.desert</attribute>
<text>Does your animal normally live in the desert?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>thintail</attribute>
<text>Does your animal have a thin tail?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>bivalve</attribute>
<text>Is your animal protected by two half-shells?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>hunted</attribute>
<text>Is your animal, unfortunately, commercially hunted?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>jump</attribute>
<text>Does your animal jump?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>hooves</attribute>
<text>Does your animal have hooves?</text>
<response>yes</response>
<response>no</response>
</question>
<question>
<attribute>always.in.water</attribute>
<text>Is your animal always in water?</text>
<response>yes</response>
<response>no</response>
</question>
( run in 0.639 second using v1.01-cache-2.11-cpan-39bf76dae61 )