<commit_before># Functional Programming December 2014 Contest by <NAME>

A Clojure application builds solve tree by features subjects, and using this tree to figure out which kind of subject is in front of user by asking questions.

Check out `solve-tree` and `alternatives` functions in [core.clj](https://github.com/alexpetrov/fp-contest-solution-tree/blob/master/src/fp_contest_solution_tree/core.clj). Them builds actual solve tree. Everything else is Console UI of expert system which traverses solve tree.

Check out tests to see basic examples of what algorithm is about.

## Usage

To run program enter following in console:

```
./run.sh<commit_msg>Some editings<commit_after># Functional Programming December 2014 Contest by <NAME>

A Clojure application that builds a solve tree by features of some subjects, and using this tree to figure out which kind of subject is in front of user by asking questions.

Check out `solve-tree` and `alternatives` functions in [core.clj](https://github.com/alexpetrov/fp-contest-solution-tree/blob/master/src/fp_contest_solution_tree/core.clj). They builds an actual solve tree. Everything else is the console UI of an expert system which traverses a solve tree.

Check out tests to see basic examples of what algorithm is about.

## Usage

To run program enter following in console:

```
./run.sh
{'fraction_non_alphanumeric': 0.06850335070737155, 'fraction_numerical': 0.005956813104988831, 'mean_word_length': 4.694915254237288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4056624', 'n_tokens_mistral': 380, 'n_tokens_neox': 355, 'n_words': 172}