├── .github └── reaction.yml ├── .gitignore ├── LICENSE ├── README.md ├── build.sh ├── data ├── LICENSE ├── countries.txt ├── lg │ ├── README.md │ └── data │ │ └── en │ │ ├── 4.0.affix │ │ ├── 4.0.constituent-knowledge │ │ ├── 4.0.dialect │ │ ├── 4.0.dict │ │ ├── 4.0.dict.m4 │ │ ├── 4.0.knowledge │ │ ├── 4.0.regex │ │ ├── Makefile.am │ │ ├── README │ │ ├── corpus-basic.batch │ │ ├── corpus-biolg.batch │ │ ├── corpus-failures.batch │ │ ├── corpus-fix-long.batch │ │ ├── corpus-fix-needed.batch │ │ ├── corpus-fixes.batch │ │ ├── corpus-voa.batch │ │ ├── tiny.dict │ │ └── words │ │ ├── Makefile.am │ │ ├── currency │ │ ├── currency.p │ │ ├── entities.given-bisex.sing │ │ ├── entities.given-female.sing │ │ ├── entities.given-male.sing │ │ ├── entities.goddesses │ │ ├── entities.gods │ │ ├── entities.locations.sing │ │ ├── entities.national.sing │ │ ├── entities.organizations.sing │ │ ├── entities.people │ │ ├── entities.people.vowel │ │ ├── entities.prof │ │ ├── entities.prof.vowel │ │ ├── entities.us-states.sing │ │ ├── measures.1 │ │ ├── measures.2 │ │ ├── units.1 │ │ ├── units.1.dot │ │ ├── units.3 │ │ ├── units.4 │ │ ├── units.4.dot │ │ ├── units.5 │ │ ├── units.6 │ │ ├── units.a │ │ ├── words-medical.adv.1 │ │ ├── words-medical.prep.1 │ │ ├── words-medical.v.4.1 │ │ ├── words-medical.v.4.2 │ │ ├── words-medical.v.4.3 │ │ ├── words-medical.v.4.4 │ │ ├── words-medical.v.4.5 │ │ ├── words.adj.1-const │ │ ├── words.adj.1-vowel │ │ ├── words.adj.2 │ │ ├── words.adj.3 │ │ ├── words.adv.1 │ │ ├── words.adv.2 │ │ ├── words.adv.3-const │ │ ├── words.adv.3-vowel │ │ ├── words.adv.4 │ │ ├── words.lang.3-const │ │ ├── words.lang.3-vowel │ │ ├── words.n.1-const │ │ ├── words.n.1-vowel │ │ ├── words.n.1.gerund │ │ ├── words.n.2.s │ │ ├── words.n.2.x │ │ ├── words.n.3-const │ │ ├── words.n.3-vowel │ │ ├── words.n.3.y │ │ ├── words.n.t │ │ ├── words.v.1.1 │ │ ├── words.v.1.2 │ │ ├── words.v.1.3 │ │ ├── words.v.1.4 │ │ ├── words.v.1.p │ │ ├── words.v.10.1 │ │ ├── words.v.10.2 │ │ ├── words.v.10.3 │ │ ├── words.v.10.4 │ │ ├── words.v.11.1 │ │ ├── words.v.11.2 │ │ ├── words.v.11.3 │ │ ├── words.v.11.4 │ │ ├── words.v.2.1 │ │ ├── words.v.2.2 │ │ ├── words.v.2.3 │ │ ├── words.v.2.4 │ │ ├── words.v.2.5 │ │ ├── words.v.4.1 │ │ ├── words.v.4.2 │ │ ├── words.v.4.3 │ │ ├── words.v.4.4 │ │ ├── words.v.4.5 │ │ ├── words.v.5.1 │ │ ├── words.v.5.2 │ │ ├── words.v.5.3 │ │ ├── words.v.5.4 │ │ ├── words.v.6.1 │ │ ├── words.v.6.2 │ │ ├── words.v.6.3 │ │ ├── words.v.6.4 │ │ ├── words.v.6.5 │ │ ├── words.v.8.1 │ │ ├── words.v.8.2 │ │ ├── words.v.8.3 │ │ ├── words.v.8.4 │ │ └── words.v.8.5 ├── moscow-restraunt-data.csv ├── us-restraunt-data.csv ├── us_cities.txt └── us_states.txt ├── doc ├── README.md ├── aigents_contacts.md ├── aigents_integration_chat_bots.md ├── aigents_integration_news_channel.md ├── aigents_integration_news_user.md ├── aigents_reports.md ├── aigents_server.md ├── aigents_telegram.md └── papers │ ├── 2014 │ ├── AgentBeliefKolonin.pdf │ ├── AgentLanguageKolonin.pdf │ └── AgentWatchingKolonin.pdf │ └── 2015 │ └── ZONT-2015-Agent-Language-Kolonin.pdf ├── html ├── en │ ├── contacts.html │ ├── help.html │ ├── img │ │ ├── aigents-be.png │ │ ├── aigents-find.png │ │ ├── aigents-like.png │ │ ├── aigents-start.png │ │ ├── aigents-stay.png │ │ ├── aigents-tell.png │ │ ├── aigents-timely.png │ │ └── index.html │ ├── index.html │ ├── license.html │ ├── products.html │ ├── project.html │ ├── quickstart.html │ ├── references.html │ ├── server-api.html │ └── technology.html ├── graph.html ├── graph_report.html ├── graphs.html ├── img │ ├── Google_Play_Store_48.png │ ├── aigents-location.png │ ├── aigents_heternet.png │ ├── aigents_platforms.jpg │ ├── aigents_wrench.png │ ├── akolonin-mirror.png │ ├── akolonin64.png │ ├── amazon-apps-store-us-white.png │ ├── compreact.ico │ ├── compreact_logo.gif │ ├── contactataigents.png │ ├── mic.png │ └── micr.png ├── index.html ├── long.html ├── map.html ├── nsk │ ├── sibkray1.html │ ├── tayga_info_companies_3014.html │ └── tayga_info_details_2014_09_04_117760.html ├── ru │ ├── help.html │ ├── license.html │ └── quickstart.html ├── run.sh ├── sitea │ ├── about.html │ ├── contacts.html │ ├── corporate.html │ ├── index.html │ ├── management.html │ ├── mission.html │ ├── more.html │ ├── personal.html │ ├── products.html │ ├── run.sh │ ├── sales.html │ ├── support.html │ └── test.html ├── siteb │ ├── about_company.html │ ├── company_management.html │ ├── company_mission.html │ ├── company_products.html │ ├── contact_info.html │ ├── index.html │ ├── midsize_business_products.html │ ├── sales_info.html │ ├── small_business_products.html │ ├── support_info.html │ └── test.html ├── test.html ├── test │ ├── Test.pdf │ ├── arxiv.xml │ ├── atom.xml │ ├── bugs │ │ └── wired.html │ ├── cat │ │ ├── chinese.html │ │ ├── eagle.html │ │ ├── fly.html │ │ ├── french.html │ │ └── snake.html │ ├── firebase.js │ ├── garbage.jpg │ ├── graphs │ │ ├── index.html │ │ ├── ontology.txt │ │ ├── reputation.txt │ │ ├── reputation1.txt │ │ ├── reputation2.txt │ │ └── reputation3.txt │ ├── index.html │ ├── junk.jpg │ ├── nest.html │ ├── nlp │ │ ├── 26_cat_tree.txt │ │ ├── 28_cat_tree.txt │ │ ├── 49_cat_tree.txt │ │ ├── atom_types.script │ │ ├── cat_tree.txt │ │ ├── cat_tree2.txt │ │ ├── cat_tree_demo.txt │ │ ├── cat_tree_test.txt │ │ ├── dict_12C_2018-08-09_0005.4.0-connectors.dict.txt │ │ ├── dict_20C_2018-08-21_0005.4.0-connectors.dict.txt │ │ ├── grammar_test_dict.txt │ │ ├── index.html │ │ ├── mi_test.txt │ │ ├── no_parent.txt │ │ ├── poc-english_4C_2018-06-06_0004.4.0.dict.txt │ │ ├── poc-english_5C_2018-06-06_0004.4.0.dict.txt │ │ ├── poc-english_ex-fmi-allLG.txt │ │ ├── poc-turtle-fmi-win6-omdist.txt │ │ ├── poc_english_noamb_parse_ideal.txt │ │ └── senses_demo.txt │ ├── rss.xml │ ├── stuff.jpg │ └── text │ │ ├── debug_d0.txt │ │ ├── debug_da.txt │ │ ├── debug_ja.txt │ │ └── debug_ro.txt ├── test1.html ├── test2.html ├── testUpper.html ├── think.html ├── trump.html ├── ui │ ├── aigents-al.js │ ├── aigents-graph.css │ ├── aigents-graph.js │ ├── aigents-gui.js │ ├── aigents-locales.js │ ├── aigents-map.js │ ├── aigents-settings.js │ ├── aigents-speech.js │ ├── aigents-wui.css │ ├── aigents-wui.js │ ├── img │ │ ├── Google_Play_Store_48.png │ │ ├── Messenger_Logo_Color_RGB.png │ │ ├── add.png │ │ ├── aigent.png │ │ ├── aigent128.ico │ │ ├── aigent32.jpg │ │ ├── aigent32.png │ │ ├── aigent32left.png │ │ ├── aigent_blank64.png │ │ ├── aigent_btn.png │ │ ├── back32.png │ │ ├── back64.png │ │ ├── del.png │ │ ├── discourse.png │ │ ├── edit.png │ │ ├── eth32.png │ │ ├── eyes_down.png │ │ ├── eyes_large.png │ │ ├── eyes_left.png │ │ ├── eyes_normal.png │ │ ├── eyes_right.png │ │ ├── eyes_sleep.png │ │ ├── eyes_small.png │ │ ├── eyes_up.png │ │ ├── fb_logo.png │ │ ├── folks_bb.png │ │ ├── folks_gb.png │ │ ├── folks_wb.png │ │ ├── g+138.png │ │ ├── g+46.png │ │ ├── golos_logo.png │ │ ├── google_icon.png │ │ ├── google_signin.png │ │ ├── graph_gb.png │ │ ├── news.png │ │ ├── ok.png │ │ ├── paypal-connect.png │ │ ├── paypal_icon.png │ │ ├── paypal_icon_no_border.png │ │ ├── paypal_icon_no_border_grayed.png │ │ ├── paypal_logged.png │ │ ├── reddit.png │ │ ├── reddit_grayed.png │ │ ├── reddit_logged.png │ │ ├── rss.png │ │ ├── singularitynet.png │ │ ├── sites.png │ │ ├── slack_add_to.png │ │ ├── slack_logo.png │ │ ├── steemit_logo.png │ │ ├── steemit_logo_new.png │ │ ├── talks.png │ │ ├── telegram_circle.png │ │ ├── telegram_square.png │ │ ├── things.png │ │ ├── twitter_logo.png │ │ ├── twitter_logo_grayed.png │ │ └── vk_logo.png │ ├── jquery-1.11.1.js │ └── jquery-ui-1.11.4.custom │ │ ├── external │ │ └── jquery │ │ │ └── jquery.js │ │ ├── images │ │ ├── ui-bg_glass_45_0078ae_1x400.png │ │ ├── ui-bg_glass_55_f8da4e_1x400.png │ │ ├── ui-bg_glass_75_79c9ec_1x400.png │ │ ├── ui-bg_gloss-wave_45_e14f1c_500x100.png │ │ ├── ui-bg_gloss-wave_50_6eac2c_500x100.png │ │ ├── ui-bg_gloss-wave_75_2191c0_500x100.png │ │ ├── ui-bg_inset-hard_100_fcfdfd_1x100.png │ │ ├── ui-icons_0078ae_256x240.png │ │ ├── ui-icons_056b93_256x240.png │ │ ├── ui-icons_d8e7f3_256x240.png │ │ ├── ui-icons_e0fdff_256x240.png │ │ ├── ui-icons_f5e175_256x240.png │ │ ├── ui-icons_f7a50d_256x240.png │ │ └── ui-icons_fcd113_256x240.png │ │ ├── index.html │ │ ├── jquery-ui.css │ │ ├── jquery-ui.js │ │ ├── jquery-ui.min.css │ │ ├── jquery-ui.min.js │ │ ├── jquery-ui.structure.css │ │ ├── jquery-ui.structure.min.css │ │ ├── jquery-ui.theme.css │ │ └── jquery-ui.theme.min.css └── verylong.html ├── lexicon_english.txt ├── lexicon_negative_english.txt ├── lexicon_negative_english_bing_liu.txt ├── lexicon_negative_russian.txt ├── lexicon_positive_english.txt ├── lexicon_positive_english_bing_liu.txt ├── lexicon_positive_russian.txt ├── lexicon_rude_english.txt ├── lexicon_rude_russian.txt ├── lexicon_russian.txt ├── php └── agent │ ├── agent_basic.php │ ├── agent_cat.php │ ├── agent_chat.php │ ├── agent_data.php │ ├── agent_learn.php │ ├── agent_login.php │ ├── agent_patt.php │ ├── agent_reputation.php │ ├── agent_sites.php │ ├── agent_test.php │ ├── agent_think.php │ ├── agent_web.php │ ├── gettest.php │ ├── pest.php │ ├── test_api.php │ ├── test_bard.php │ └── test_steemit.php ├── resources ├── add32.png ├── add64.png ├── aigent.gif ├── aigent.png ├── aigent128.ico ├── aigent128.png ├── aigent32.png ├── aigentnews128.png ├── body128.png ├── body32.png ├── body64.png ├── del32.png ├── del64.png ├── edit32.png ├── edit64.png ├── eyes_down.png ├── eyes_large.png ├── eyes_left.png ├── eyes_normal.gif ├── eyes_normal.png ├── eyes_right.png ├── eyes_sleep.png ├── eyes_small.png ├── eyes_up.png ├── folks.gif ├── folks32.png ├── manifest.mf ├── news.gif ├── news32.png ├── ok32.png ├── props32.png ├── props64.png ├── sites.gif ├── sites32.png ├── talks.gif ├── talks32.gif ├── talks32.png ├── things.gif ├── things32.png └── w.gif ├── src └── main │ └── java │ └── net │ └── webstructor │ ├── agent │ ├── Body.java │ ├── Demo.java │ ├── Farm.java │ ├── Merger.java │ └── Schema.java │ ├── agi │ ├── AgiTester.java │ ├── ChangeActionSpaceMatchingPlayer.java │ ├── Game.java │ ├── GamePad.java │ ├── LazyPlayer.java │ ├── OpenGymSock.java │ ├── Player.java │ ├── ReactivePlayer.java │ ├── SelfPong.java │ ├── SelfPongDiscrete.java │ ├── SimplePredictivePlayer.java │ ├── SimpleSequenceMatchingPlayer.java │ ├── State.java │ ├── StateActionSpaceExpectingPlayer.java │ └── StateActionSpaceMatchingPlayer.java │ ├── al │ ├── AL.java │ ├── All.java │ ├── Any.java │ ├── Iter.java │ ├── Parser.java │ ├── Period.java │ ├── Reader.java │ ├── Ref.java │ ├── Seq.java │ ├── Set.java │ ├── Statement.java │ ├── Term.java │ ├── Time.java │ └── Writer.java │ ├── cat │ ├── BasicCalculator.java │ ├── BasicInteractor.java │ ├── BasicProcessor.java │ ├── BasicServer.java │ ├── BasicStorager.java │ ├── BasicTokenizer.java │ ├── Calculator.java │ ├── CmdLine.java │ ├── CommandHandler.java │ ├── HTML2Text.java │ ├── HtmlStripper.java │ ├── HttpFileContext.java │ ├── HttpFileReader.java │ ├── HttpServer.java │ ├── Interactor.java │ ├── InteractorItem.java │ ├── InteractorRelevantItem.java │ ├── Item.java │ ├── Processor.java │ ├── Reader.java │ ├── Relation.java │ ├── RelevantItem.java │ ├── Server.java │ ├── Servlet.java │ ├── Storager.java │ ├── StoragerMemory.java │ ├── StoragerRelation.java │ ├── StringUtil.java │ ├── TextFileReader.java │ ├── TextStringReader.java │ ├── Tokenizer.java │ └── Types.java │ ├── comm │ ├── CmdLiner.java │ ├── Communicator.java │ ├── Crawler.java │ ├── Emailer.java │ ├── HTTP.java │ ├── HTTPHandler.java │ ├── HTTPListener.java │ ├── HTTPeer.java │ ├── InteractionItem.java │ ├── Mediator.java │ ├── RSSer.java │ ├── SMTPer.java │ ├── Slacker.java │ ├── SocialBinder.java │ ├── SocialCacher.java │ ├── Socializer.java │ ├── TCPListener.java │ ├── TCPeer.java │ ├── discourse │ │ ├── Discourse.java │ │ ├── DiscourseFeeder.java │ │ └── DiscourseItem.java │ ├── eth │ │ ├── Ethereum.java │ │ └── InfuraFeeder.java │ ├── fb │ │ ├── FB.java │ │ ├── Feeder.java │ │ └── Messenger.java │ ├── goog │ │ ├── GApi.java │ │ └── GApiFeeder.java │ ├── paypal │ │ ├── PayPal.java │ │ ├── PayPalFeeder.java │ │ └── PayPaler.java │ ├── reddit │ │ ├── Reddit.java │ │ ├── RedditFeeder.java │ │ ├── RedditItem.java │ │ └── Redditer.java │ ├── steemit │ │ ├── Steemit.java │ │ ├── SteemitFeeder.java │ │ └── SteemitGraphFeeder.java │ ├── telegram │ │ ├── Telegram.java │ │ └── Telegrammer.java │ ├── twitter │ │ ├── Twit.java │ │ ├── Twitter.java │ │ └── Twitterer.java │ └── vk │ │ ├── VK.java │ │ └── VKFeeder.java │ ├── core │ ├── Actioner.java │ ├── Agent.java │ ├── Anything.java │ ├── Archiver.java │ ├── Environment.java │ ├── Filer.java │ ├── Mistake.java │ ├── Named.java │ ├── Property.java │ ├── Query.java │ ├── Scheduler.java │ ├── Storager.java │ ├── Thing.java │ └── Updater.java │ ├── data │ ├── Cacher.java │ ├── CacherHolder.java │ ├── ComplexNumber.java │ ├── ContentLocator.java │ ├── Counter.java │ ├── DataLogger.java │ ├── Emotioner.java │ ├── Graph.java │ ├── GraphCacher.java │ ├── Lang.java │ ├── LangPack.java │ ├── Linker.java │ ├── Miner.java │ ├── OrderedMap.java │ ├── OrderedSet.java │ ├── OrderedStringSet.java │ ├── ReputationSystem.java │ ├── SocialFeeder.java │ ├── SocialFeederHelper.java │ ├── Stater.java │ ├── Summator.java │ ├── TextMiner.java │ ├── ThingComparator.java │ ├── Transcoder.java │ └── Translator.java │ ├── gram │ ├── core │ │ ├── CharacterItem.java │ │ ├── Item.java │ │ ├── LinkItem.java │ │ ├── MemoryStore.java │ │ ├── MemoryType.java │ │ ├── Ngram.java │ │ └── StringItem.java │ ├── lang │ │ └── Character.java │ ├── main │ │ ├── Filer.java │ │ └── LexStructor.java │ └── util │ │ ├── Format.java │ │ └── StringUtil.java │ ├── gui │ ├── App.java │ ├── Chatter.java │ ├── DataModel.java │ ├── Eyes.java │ ├── Frame.java │ ├── IntegerEditor.java │ ├── Table.java │ ├── Tabs.java │ ├── ToolBar.java │ └── Tray.java │ ├── main │ ├── Logger.java │ ├── Mainer.java │ └── Tester.java │ ├── mine │ ├── Handler.java │ ├── HttpServer.java │ ├── MineServlet.java │ ├── auth │ │ ├── AdmServer.java │ │ ├── AdmSession.java │ │ ├── Asset.java │ │ ├── AuthSession.java │ │ ├── Group.java │ │ └── StoreSchema.java │ ├── core │ │ ├── BasicCoreRelation.java │ │ ├── BasicRelation.java │ │ ├── CoreRelation.java │ │ ├── Id.java │ │ ├── Item.java │ │ ├── Relation.java │ │ └── RelevantItem.java │ ├── inf │ │ ├── InfException.java │ │ ├── InfServer.java │ │ ├── InfSession.java │ │ └── StoreSchema.java │ ├── store │ │ ├── Schema.java │ │ ├── SimpleMemoryStorage.java │ │ ├── Storage.java │ │ └── StoreException.java │ └── util │ │ ├── ReadWriteLock.java │ │ ├── StringContext.java │ │ └── StringUtil.java │ ├── nlp │ ├── GrammarParser.java │ ├── LinkGrammarParser.java │ ├── NgramAllParser.java │ ├── NgramTreeParser.java │ └── lg │ │ ├── Dictionary.java │ │ ├── Disjunct.java │ │ ├── LgEnParser.java │ │ ├── Link.java │ │ ├── Linkage.java │ │ ├── Loader.java │ │ ├── Rule.java │ │ ├── Sentence.java │ │ └── Word.java │ ├── peer │ ├── Answerer.java │ ├── ControlledResponser.java │ ├── Conversation.java │ ├── Conversationer.java │ ├── EmailChange.java │ ├── Finder.java │ ├── Grouper.java │ ├── Intenter.java │ ├── Login.java │ ├── PatternResponser.java │ ├── Peer.java │ ├── Profiler.java │ ├── Registration.java │ ├── Reporter.java │ ├── Reputationer.java │ ├── Responser.java │ ├── SearchContext.java │ ├── Searcher.java │ ├── Session.java │ ├── Sessioner.java │ ├── Summarizer.java │ ├── Verification.java │ └── VerificationChange.java │ ├── self │ ├── Aigents.java │ ├── Cacher.java │ ├── Matcher.java │ ├── PathFinder.java │ ├── PathTracker.java │ ├── Publisher.java │ ├── Self.java │ ├── Selfer.java │ ├── Siter.java │ ├── Spider.java │ ├── Streamer.java │ ├── Thinker.java │ └── WebCrawler.java │ ├── serp │ ├── GoogleSearch.java │ ├── SerpAPI.java │ └── Serper.java │ └── util │ ├── AgiTester.java │ ├── Array.java │ ├── ArrayPositionComparator.java │ ├── Code.java │ ├── JSON.java │ ├── JsonReporter.java │ ├── MapMap.java │ ├── ReportWriter.java │ ├── Str.java │ └── WebKiter.java ├── test.out └── test.sh /.github/reaction.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/.github/reaction.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | 25 | .idea 26 | .gradle 27 | 28 | *.iml 29 | 30 | bin 31 | build 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2005-2024 by Anton Kolonin, Aigents® 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Pre-requisite: 4 | # Pre-fill lib with jars accordingly to README.md or from http://aigents.com/download/latest/ 5 | 6 | rm Aigents.jar 7 | mkdir bin 8 | cp -r resources/* bin 9 | cp -r lib/* bin 10 | cd src/main/java 11 | # For Java 9+ (can not load jar in jar) 12 | #javac -cp ".:./../../../lib/*" -d ./../../../bin -target 1.7 -source 1.7 $(find ./net/* | grep .java) 13 | # For Java 6-8 14 | javac -cp ".:./../../../lib/*" -d ./../../../bin -target 1.6 -source 1.6 -Xlint:deprecation $(find ./net/* | grep .java) 15 | cd ./../../../bin 16 | jar cvfm ../Aigents.jar manifest.mf * 17 | cd .. 18 | -------------------------------------------------------------------------------- /data/LICENSE: -------------------------------------------------------------------------------- 1 | The following files are obtained from the follwoing sources corresponding to respective licensing terms, as follows. 2 | 3 | File: moscow-restraunt-data.csv 4 | Source: https://www.kaggle.com/datafiniti/fast-food-restaurants 5 | License: https://creativecommons.org/licenses/by-nc-sa/4.0/ 6 | 7 | File: us-restraunt-data.csv 8 | Source: https://data.mos.ru/datasets/1788 9 | License: No information 10 | -------------------------------------------------------------------------------- /data/lg/README.md: -------------------------------------------------------------------------------- 1 | The current Link Grammar dictonary corresponds to version 5.8.0 of [https://github.com/opencog/link-grammar](https://github.com/opencog/link-grammar) 2 | -------------------------------------------------------------------------------- /data/lg/data/en/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS=words 2 | 3 | DICTS= \ 4 | 4.0.affix \ 5 | 4.0.constituent-knowledge \ 6 | 4.0.dialect \ 7 | 4.0.dict \ 8 | 4.0.dict.m4 \ 9 | 4.0.knowledge \ 10 | 4.0.regex 11 | 12 | dictdir=$(pkgdatadir)/en 13 | dict_DATA = $(DICTS) 14 | 15 | # The make uninstall target should remove directories we created. 16 | uninstall-hook: 17 | -rmdir $(dictdir)/words 18 | -rmdir $(dictdir) 19 | 20 | 21 | # Do NOT install the batch files! 22 | EXTRA_DIST = $(DICTS) \ 23 | corpus-basic.batch \ 24 | corpus-biolg.batch \ 25 | corpus-fixes.batch \ 26 | corpus-fix-long.batch \ 27 | corpus-voa.batch \ 28 | tiny.dict 29 | -------------------------------------------------------------------------------- /data/lg/data/en/corpus-fix-needed.batch: -------------------------------------------------------------------------------- 1 | !batch 2 | !echo 3 | !limit=1000 4 | !short=20 5 | !spell=0 6 | 7 | 8 | % Assorted hand-curated examples of things that don't work. 9 | the girl, unhappy, looked down 10 | 11 | He emerged, spirit unbroken 12 | He was set free, spirit unbroken. 13 | He laughed, at last set free 14 | 15 | He cried, heart heavy 16 | He cried, his heart heavy 17 | He cried, heavy-hearted 18 | heart heavy, he cried 19 | He cried, his heart heavy with sadness 20 | He cried, his heart [being] heavy with sadness <-- zero copula 21 | He reddened, angered by their words 22 | He shuffled, aching limbs hanging heavy 23 | He sneezed, eyes red and itchy <--- bad parse 24 | He nodded, eyelids drooping with sleep 25 | 26 | Do as we do 27 | 28 | As for staying away, I wouldn't think of it. << parses, but incorrectly 29 | As to staying away, I wouldn't think of it. << parses, but incorrectly 30 | 31 | % Comparatives 32 | I get as much as he 33 | I get as much as he does 34 | I want as much as he gets 35 | 36 | % These are "easy" to fix, but cause a clash in the corpus-basic.batch: 37 | he really delivers, doesn't he? 38 | he really smells, doesn't he? 39 | Questionable as it may be, we will proceed. 40 | 41 | % Nasty clause-and construction. two subject-verb complexes taking a 42 | % common object. Alternately, two subject-verb complexes as a relative 43 | % clause. Fixing this is nasty and invasive :-( 44 | everybody knew and everybody liked him 45 | Carter Hallam was a fellow whom everybody knew and everybody liked. 46 | Carter Hallam was a jolly, easy-going fellow whom everybody knew and everybody liked. 47 | -------------------------------------------------------------------------------- /data/lg/data/en/words/Makefile.am: -------------------------------------------------------------------------------- 1 | WORDS= \ 2 | currency \ 3 | currency.p \ 4 | entities.given-bisex.sing \ 5 | entities.given-female.sing \ 6 | entities.given-male.sing \ 7 | entities.goddesses \ 8 | entities.gods \ 9 | entities.locations.sing \ 10 | entities.national.sing \ 11 | entities.organizations.sing \ 12 | entities.people \ 13 | entities.people.vowel \ 14 | entities.prof \ 15 | entities.prof.vowel \ 16 | entities.us-states.sing \ 17 | measures.1 \ 18 | measures.2 \ 19 | units.1 \ 20 | units.1.dot \ 21 | units.3 \ 22 | units.4 \ 23 | units.4.dot \ 24 | units.5 \ 25 | units.6 \ 26 | units.a \ 27 | words.adj.1-const \ 28 | words.adj.1-vowel \ 29 | words.adj.2 \ 30 | words.adj.3 \ 31 | words.adv.1 \ 32 | words-medical.adv.1 \ 33 | words.adv.2 \ 34 | words.adv.3-const \ 35 | words.adv.3-vowel \ 36 | words.adv.4 \ 37 | words.n.1-const \ 38 | words.n.1-vowel \ 39 | words.n.1.gerund \ 40 | words.n.2.s \ 41 | words.n.2.x \ 42 | words.n.3-const \ 43 | words.n.3-vowel \ 44 | words.lang.3-const \ 45 | words.lang.3-vowel \ 46 | words.n.3.y \ 47 | words.n.t \ 48 | words-medical.prep.1 \ 49 | words.v.1.1 \ 50 | words.v.1.2 \ 51 | words.v.1.3 \ 52 | words.v.1.4 \ 53 | words.v.1.p \ 54 | words.v.2.1 \ 55 | words.v.2.2 \ 56 | words.v.2.3 \ 57 | words.v.2.4 \ 58 | words.v.2.5 \ 59 | words.v.4.1 \ 60 | words-medical.v.4.1 \ 61 | words.v.4.2 \ 62 | words-medical.v.4.2 \ 63 | words.v.4.3 \ 64 | words-medical.v.4.3 \ 65 | words.v.4.4 \ 66 | words-medical.v.4.4 \ 67 | words.v.4.5 \ 68 | words-medical.v.4.5 \ 69 | words.v.5.1 \ 70 | words.v.5.2 \ 71 | words.v.5.3 \ 72 | words.v.5.4 \ 73 | words.v.6.1 \ 74 | words.v.6.2 \ 75 | words.v.6.3 \ 76 | words.v.6.4 \ 77 | words.v.6.5 \ 78 | words.v.8.1 \ 79 | words.v.8.2 \ 80 | words.v.8.3 \ 81 | words.v.8.4 \ 82 | words.v.8.5 \ 83 | words.v.10.1 \ 84 | words.v.10.2 \ 85 | words.v.10.3 \ 86 | words.v.10.4 \ 87 | words.v.11.1 \ 88 | words.v.11.2 \ 89 | words.v.11.3 \ 90 | words.v.11.4 91 | 92 | 93 | wordsdir=$(pkgdatadir)/en/words 94 | words_DATA = $(WORDS) 95 | 96 | EXTRA_DIST = $(WORDS) 97 | -------------------------------------------------------------------------------- /data/lg/data/en/words/currency.p: -------------------------------------------------------------------------------- 1 | Afghanis.c afghanis.c 2 | Angolars.c angolars.c 3 | Argentinos.c argentinos.c 4 | Australs.c australs.c 5 | Bolívars.c bolívars.c 6 | cents.c 7 | Dollars.c dollars.c 8 | Ducats.c ducats.c 9 | Euros.c euros.c 10 | Francs.c francs.c 11 | Franks.c franks.c 12 | Grosze.c grosze.c 13 | Groszy.c groszy.c 14 | Halfpennies.c halfpennies.c 15 | Kopeka.c kopeka.c 16 | Kopeks.c kopeks.c 17 | Kopecks.c kopecks.c 18 | Kronenthalers.c kronenthalers.c 19 | Leks.c leks.c 20 | Marks.c marks.c 21 | Papiermarks.c papiermarks.c 22 | pennies.c 23 | Pesetas.c pesetas.c 24 | Pesos.c pesos.c 25 | Pounds.c pounds.c 26 | Reals.c reals.c 27 | Reichsmarks.c reichsmarks.c 28 | Rixdollars.c rixdollars.c 29 | Riyals.c riyals.c 30 | Roubles.c roubles.c 31 | Rubels.c rubels.c 32 | Rubles.c rubles.c 33 | Rupees.c rupees.c 34 | Rupiahs.c rupiahs.c 35 | Rupies.c rupies.c 36 | Schillings.c schillings.c 37 | Shekels.c shekels.c 38 | Shillings.c shillings.c 39 | Sovereigns.c sovereigns.c 40 | Złoty.cp złoty.cp 41 | Złotych.cp złotych.cp 42 | Złotys.c złotys.c 43 | -------------------------------------------------------------------------------- /data/lg/data/en/words/entities.organizations.sing: -------------------------------------------------------------------------------- 1 | 10K 7-11 2 | Bank Central Chase.o Christmas City Democratic 3 | Dodge.o East El Equatorial Features Federated Ford.o Former 4 | Friar Island Islands Isle Korea La Land Lands Los 5 | New Norfolk North Ocean Republic San Sao Sea Socialist 6 | South Southern Soviet States Strip Sun.o Territory 7 | Undersea Union United West Western 8 | -------------------------------------------------------------------------------- /data/lg/data/en/words/entities.people.vowel: -------------------------------------------------------------------------------- 1 | abbe.n 2 | Abbe.n 3 | abbess.n 4 | Abbess.n 5 | abbé.n 6 | Abbé.n 7 | abbot.n 8 | Abbot.n 9 | Afghan.s 10 | African.s 11 | Albanian.s 12 | Alberian.s 13 | Algerian.s 14 | Alsatian.n 15 | ambassador.n 16 | Ambassador.n 17 | American.s 18 | Andorran.s 19 | Angentinian.s 20 | Angolan.s 21 | Antiguan.s 22 | Arab.s 23 | archbishop.n 24 | Archbishop.n 25 | archdeacon.n 26 | Archduke.n-m 27 | archduke.n-m 28 | Armenian.s 29 | Aserbaijani.s 30 | Asian.s 31 | attorney.n 32 | Attorney.n 33 | auntie.n-f 34 | aunt.n-f 35 | aunty.n-f 36 | Australian.s 37 | Austrian.s 38 | Azerbaijani.s 39 | Ecuadorian.s 40 | Egyptian.s 41 | eminence.s 42 | emir.n 43 | Emir.n 44 | Emperor.n-m 45 | emperor.n-m 46 | Empress.n 47 | empress.n-f 48 | Eritrean.s 49 | Estonian.s 50 | Ethiopian.s 51 | European.s 52 | Indian.s 53 | Indonesian.s 54 | inspector.n 55 | Inspector.n 56 | Iranian.s 57 | Iraqi.s 58 | Israeli.s 59 | Italian.s 60 | Ivorian.s 61 | Omani.s 62 | Ugandan.s 63 | Ukrainian.s 64 | uncle.n-m 65 | undersecretary.n 66 | Undersecretary.n 67 | Uruguayan.s 68 | -------------------------------------------------------------------------------- /data/lg/data/en/words/entities.us-states.sing: -------------------------------------------------------------------------------- 1 | Ala. Alaska Ariz. Ark. 2 | Calif. Colo. Conn. Del.s 3 | Fla. Ga. Hawaii Idaho Ill. Ind. 4 | Iowa Kan. 5 | Ky. La. Md. Ma. Mass. Me. Mich. 6 | Minn. Miss. Mo. Mont. Neb. 7 | Nev. NH N.H. NJ N.J. 8 | NM N.M. NY N.Y. NC N.C. ND N.D. Ohio Okla. 9 | Ore. Pa. RI R.I. SC S.C. SD S.D. 10 | Tenn. Tex. Texas.s Utah Va. Vt. Wash. 11 | WV W.V. Wis. Wy. 12 | -------------------------------------------------------------------------------- /data/lg/data/en/words/measures.1: -------------------------------------------------------------------------------- 1 | army.n 2 | assembly.n 3 | bag.n 4 | batch.d 5 | bevy.n 6 | bulk.d 7 | bunch.d 8 | bundle.n 9 | carload.n 10 | cartload.n 11 | centiliter.n 12 | centilitre.n 13 | chunk.n 14 | cloud.n 15 | collection.n 16 | colony.n 17 | company.n 18 | convoy.n 19 | crowd.n 20 | crush.n 21 | cup.n 22 | decaliter.n 23 | decalitre.n 24 | deciliter.n 25 | decilitre.n 26 | drift.n 27 | drove.n 28 | expanse.n 29 | extent.n 30 | femtoliter.n 31 | femtolitre.n 32 | flight.n 33 | flock.n 34 | gaggle.n 35 | gallon.n 36 | gathering.n 37 | gob.n 38 | group.d 39 | half-gallon.n 40 | handful.d 41 | heap.n 42 | herd.n 43 | host.n 44 | hunk.n 45 | legion.n 46 | litter.n 47 | load.n 48 | lot.n 49 | magnitude.n 50 | majority.d 51 | mass.n 52 | measure.n 53 | megaliter.n 54 | megalitre.n 55 | mess.n 56 | microliter.n 57 | microlitre.n 58 | milliliter.n 59 | millilitre.n 60 | minority.d 61 | mint.n 62 | multitude.n 63 | nanoliter.n 64 | nanolitre.n 65 | number.d 66 | pack.n 67 | passel.n 68 | peck.n 69 | picoliter.n 70 | picolitre.n 71 | pile.n 72 | pint.n 73 | pride.n 74 | progeny.n 75 | quart.n 76 | raft.n 77 | rout.n 78 | score.n 79 | shipload.n 80 | skein.n 81 | slew.n 82 | stack.n 83 | sum.n 84 | supply.n 85 | tablespoonful.n 86 | tablespoon.n 87 | teaspoonful.n 88 | teaspoon.n 89 | throng.n 90 | ton.n 91 | trainload.n 92 | volume.n 93 | wad.n 94 | dram.n 95 | ounce.n 96 | pound.n 97 | picogram.n 98 | centigram.n 99 | decagram.n 100 | decigram.n 101 | gram.n 102 | kilogram.n 103 | kilolitre.n 104 | megagram.n 105 | microgram.n 106 | milligram.n 107 | amount.d 108 | degree.n 109 | type.n 110 | kind.n 111 | sort.n 112 | breed.n 113 | couple.n 114 | part.n 115 | quantity.n 116 | bit.n 117 | rest.s 118 | -------------------------------------------------------------------------------- /data/lg/data/en/words/measures.2: -------------------------------------------------------------------------------- 1 | armies.n 2 | bags.n 3 | bevies.n 4 | boatloads.n 5 | bunches.n 6 | bundles.n 7 | carloads.n 8 | cartloads.n 9 | centigrams.n 10 | centiliters.n 11 | centilitres.n 12 | chunks.n 13 | collections.n 14 | companies.n 15 | convoies.n 16 | crowds.n 17 | cups.n 18 | decagrams.n 19 | decigrams.n 20 | deciliters.n 21 | decilitres.n 22 | drams.n 23 | droves.n 24 | expanses.n 25 | extents.n 26 | femtograms.n 27 | femtoliters.n 28 | femtolitres.n 29 | flights.n 30 | flocks.n 31 | gallons.n 32 | gatherings.n 33 | gobs.n 34 | grams.n 35 | half-gallons.n 36 | heaps.n 37 | herds.n 38 | hunks.n 39 | kilograms.n 40 | kiloliters.n 41 | kilolitres.n 42 | legions.n 43 | loads.n 44 | masses.n 45 | micrograms.n 46 | microliters.n 47 | microlitres.n 48 | milligrams.n 49 | milliliters.n 50 | millilitres.n 51 | mucho.n 52 | nanograms.n 53 | nanoliters.n 54 | nanolitres.n 55 | numbers.n 56 | oodles.n 57 | ounces.n 58 | packs.n 59 | picograms.n 60 | picoliters.n 61 | picolitres.n 62 | piles.n 63 | pints.n 64 | pounds.n 65 | quarts.n 66 | rafts.n 67 | scads.n 68 | scores.n 69 | shiploads.n 70 | stacks.n 71 | sums.n 72 | tablespoonfuls.n 73 | tablespoons.n 74 | teaspoonfuls.n 75 | teaspoons.n 76 | throngs.n 77 | tons.n 78 | trainloads.n 79 | volumes.n 80 | wads.n 81 | amounts.d 82 | degrees.n 83 | kinds.n 84 | sorts.n 85 | breeds.n 86 | types.n 87 | quantities.n 88 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.1.dot: -------------------------------------------------------------------------------- 1 | in.u ins.u ft.u yd.u yds.u mi.u 2 | in..u ins..u ft..u yd..u yds..u mi..u 3 | lb.u lbs.u oz.u ozs.u 4 | lb..u lbs..u oz..u ozs..u 5 | tbsp.u tsp.u pt.u qt.u gal.u bbl.u 6 | tbsp..u tsp..u pt..u qt..u gal..u bbl..u 7 | sq.u 8 | sq..u 9 | cu.u 10 | cu..u 11 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.3: -------------------------------------------------------------------------------- 1 | °C.u °F.u degrees_Fahrenheit degrees_Centigrade degrees_C 2 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.4: -------------------------------------------------------------------------------- 1 | century.u millenium.u year.u month.u week.u day.u hour.u minute.u 2 | centuries.u millenia.u years.u months.u weeks.u days.u hours.u minutes.u 3 | Second.u second.u Seconds.u seconds.u 4 | millisecond.u microsecond.u nanosecond.u picosecond.u 5 | milliseconds.u microseconds.u nanoseconds.u picoseconds.u 6 | femtosecond.u attosecond.u 7 | femtoseconds.u attoseconds.u 8 | msec.u msecs.u sec.u secs.u 9 | aS.u fS.u pS.u nS.u uS.u μS.u mS.u kS.u 10 | s.u S.u 11 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.4.dot: -------------------------------------------------------------------------------- 1 | min.u h.u hr.u dy.u wk.u wks.u mo.u mos.u yr.u yrs.u 2 | min..u h..u hr..u dy..u wk..u wks..u mo..u mos..u yr..u yrs..u 3 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.5: -------------------------------------------------------------------------------- 1 | AM.ti PM.ti am.ti pm.ti a.m. p.m. o'clock oclock 2 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.6: -------------------------------------------------------------------------------- 1 | / 2 | -------------------------------------------------------------------------------- /data/lg/data/en/words/units.a: -------------------------------------------------------------------------------- 1 | sq.a 2 | sq..a 3 | cu.a 4 | cu..a 5 | ft.a 6 | ft..a 7 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words-medical.prep.1: -------------------------------------------------------------------------------- 1 | admedian 2 | anconad 3 | anteriad 4 | antiniad 5 | atlantad 6 | basad 7 | basilad 8 | caudad 9 | caudalward 10 | cephalad 11 | coronad 12 | craniad 13 | dermad 14 | dextrad 15 | distad 16 | dorsad 17 | dorsocephalad 18 | dorsoventrad 19 | ectad 20 | ectoentad 21 | entad 22 | entoectad 23 | frontad 24 | glabellad 25 | I.M. 26 | in_cellulo 27 | incertae_sedis 28 | iniad 29 | in_ovo 30 | in_tela 31 | intrad 32 | in_utero 33 | in_vacuo 34 | laterad 35 | mediad 36 | mesad 37 | mesiad 38 | neurad 39 | obeliad 40 | peripherad 41 | posteriad 42 | prorsad 43 | proximad 44 | radiad 45 | retrad 46 | rostrad 47 | rotulad 48 | sacrad 49 | sinistrad 50 | sternad 51 | terminad 52 | thenad 53 | tibiad 54 | ulnad 55 | ventrad 56 | ventrodorsad 57 | viscerad 58 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.adv.2: -------------------------------------------------------------------------------- 1 | absurdly 2 | additionally 3 | admittedly 4 | allegedly 5 | alternatively 6 | appallingly 7 | arguably 8 | assuredly 9 | astonishingly 10 | basically 11 | commonly 12 | conceivably 13 | consequentially 14 | contrastingly 15 | conveniently 16 | crucially 17 | curiously 18 | customarily 19 | disappointingly 20 | doubtless 21 | essentially 22 | fascinatingly 23 | fortunately 24 | hopefully 25 | ideally 26 | idiotically 27 | incidentally 28 | incontestably 29 | increasingly 30 | indeniably 31 | indisputably 32 | indubitably 33 | inevitably 34 | invariably 35 | lamentably 36 | lastly 37 | luckily 38 | meanwhile 39 | miraculously 40 | obviously 41 | ordinarily 42 | ostensibly 43 | paradoxically 44 | predictably 45 | preferably 46 | principally 47 | regrettably 48 | reportedly 49 | secondarily 50 | strictly 51 | supposedly 52 | surely 53 | tragically 54 | unavoidably 55 | uncannily 56 | uncharacteristically 57 | understandably 58 | undisputably 59 | unfortunately 60 | unluckily 61 | unquestionably 62 | contrarily 63 | namely 64 | neurologically 65 | coincidentally 66 | reversibly 67 | viz 68 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.adv.3-vowel: -------------------------------------------------------------------------------- 1 | academically.e 2 | actuarially.e 3 | administratively.e 4 | aesthetically.e 5 | aetiopathogenetically.e 6 | agriculturally.e 7 | agricuturally.e 8 | algebraically.e 9 | allegorically.e 10 | anatomically.e 11 | archeologically.e 12 | architecturally.e 13 | arithmetically.e 14 | artistically.e 15 | assumedly.e 16 | astronomically.e 17 | athletically.e 18 | atypically.e 19 | ecclesiastically.e 20 | ecologically.e 21 | economically.e 22 | educationally.e 23 | electorally.e 24 | empirically.e 25 | environmentally.e 26 | equidistantly.e 27 | esthetically.e 28 | ethically.e 29 | ethnically.e 30 | ethnoculturally.e 31 | immunophenotypically.e 32 | infinitesimally.e 33 | institutionally.e 34 | opportunistically.e 35 | optically.e 36 | organizationally.e 37 | overridingly.e 38 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.adv.4: -------------------------------------------------------------------------------- 1 | abdominally 2 | anally 3 | ante_meridiem 4 | anteromedially 5 | arterially 6 | axially 7 | buccally 8 | buccolingually 9 | cardiovascularly 10 | centroparietally 11 | centrotemporally 12 | contiguously 13 | cutaneously 14 | dermally 15 | dorso-ventrally 16 | ectodermally 17 | endotracheally 18 | epithelially 19 | extradurally 20 | extrahepatically 21 | incisionally 22 | inferolaterally 23 | inferoposteriorly 24 | inferotemporally 25 | intercellularly 26 | interfollicularly 27 | interictally 28 | intermolecularly 29 | interoinferiorly 30 | intestinally 31 | intra-abdominally 32 | intra-amniotically 33 | intra-arterially 34 | intra-atrially 35 | intracellularly 36 | intracerebroventricularly 37 | intradermally 38 | intragastrically 39 | intralymphatically 40 | intralymphocytically 41 | intramolecularly 42 | intramuscularly 43 | intranasally 44 | intraneuronally 45 | intraocularly 46 | intraorganically 47 | intraperitonally 48 | intraperitoneally 49 | intrapleurally 50 | intrathecally 51 | intravascularly 52 | intravitreally 53 | labially 54 | lingually 55 | linguoapically 56 | medially 57 | mesially 58 | mesothoracically 59 | neonatally 60 | neurally 61 | neuroectodermally 62 | nonsimultaneously 63 | peripherally 64 | pertrochanterically 65 | postanoxically 66 | postbulbarly 67 | posteriorly 68 | postero-anteriorly 69 | postsynaptically 70 | presynaptically 71 | proximally 72 | subcutaneously 73 | subdermally 74 | supraaortically 75 | suprabasally 76 | suprapubically 77 | thereto 78 | transversely 79 | up_and_down 80 | ventrally 81 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.lang.3-vowel: -------------------------------------------------------------------------------- 1 | Abkhazian 2 | Achinese 3 | Acoli 4 | Adangme 5 | Adygei 6 | Adyghe 7 | Afan 8 | Afar 9 | Afghani 10 | Afrihili 11 | Afrikaans 12 | Afro-Asiatic 13 | Ainu 14 | Akan 15 | Akkadian 16 | Albanian 17 | Alberian 18 | Alemannic 19 | Aleut 20 | Algerian 21 | Algonquian 22 | Alsatian 23 | Altai 24 | Altaic 25 | Amharic 26 | Andorran 27 | Angentinian 28 | Angika 29 | Apache 30 | Arabic 31 | Aragonese 32 | Aramaic 33 | Arapaho 34 | Arawak 35 | Armenian 36 | Aromanian 37 | Arumanian 38 | Aserbaijani 39 | Assamese 40 | Asturian 41 | Asturleonese 42 | Athapascan 43 | Australian 44 | Austronesian 45 | Avaric 46 | Avestan 47 | Awadhi 48 | Aymara 49 | Azerbaijani 50 | Azeri 51 | Edo 52 | Efik 53 | Egyptian 54 | Ekajuk 55 | Elamite 56 | English 57 | Eritrean 58 | Erzya 59 | Esperanto 60 | Estonian 61 | Ewe 62 | Ewondo 63 | Iban 64 | Icelandic 65 | Icelandish 66 | Ido 67 | Igbo 68 | Ijo 69 | Iloko 70 | Inari_Sami 71 | Indian 72 | Indic 73 | Indo-European 74 | Indonesian 75 | Ingush 76 | Interlingua 77 | Interlingue 78 | Inuktitut 79 | Inupiak 80 | Inupiaq 81 | Iranian 82 | Irish 83 | Iroquoian 84 | Italian 85 | Occidental 86 | Occitan 87 | Oirat 88 | Ojibwa 89 | Old_Bulgarian 90 | Old_Church_Slavonic 91 | Old_English 92 | Old_Slavonic 93 | Omani 94 | Oriya 95 | Oromo 96 | Osage 97 | Ossetian 98 | Ossetic 99 | Otomian 100 | Udmurt 101 | Ugaritic 102 | Uighur 103 | Uigur 104 | Ukrainian 105 | Umbundu 106 | Upper_Sorbian 107 | Urdu 108 | Uyghur 109 | Uzbek 110 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.n.1.gerund: -------------------------------------------------------------------------------- 1 | airing.n 2 | bearing.n 3 | beating.n 4 | beginning.n 5 | blessing.n 6 | bombing.n 7 | building.n 8 | calling.n 9 | casting.n 10 | christening.n 11 | clearing.n 12 | coating.n 13 | coupling.n 14 | covering.n 15 | craving.n 16 | crossing.n 17 | cutting.n 18 | dealing.n 19 | drafting.n 20 | ducking.n 21 | dwelling.n 22 | edging.n 23 | ending.n 24 | etching.n 25 | failing.n 26 | filing.n 27 | filling.n 28 | fitting.n 29 | following.n 30 | greeting.n 31 | grounding.n 32 | hankering.n 33 | happening.n 34 | heading.n 35 | hearing.n 36 | helping.n 37 | hiding.n 38 | holding.n 39 | landing.n 40 | lashing.n 41 | liking.n 42 | lining.n 43 | listing.n 44 | living.n 45 | marking.n 46 | meeting.n 47 | misreading.n 48 | misspelling.n 49 | misunderstanding.n 50 | mugging.n 51 | offering.n 52 | offing.n 53 | opening.n 54 | ordering.n 55 | outing.n 56 | painting.n 57 | parting.n 58 | pressing.n 59 | priming.n 60 | proceeding.n 61 | railing.n 62 | rating.n 63 | raving.n 64 | reckoning.n 65 | recording.n 66 | rehearing.n 67 | rendering.n 68 | ruling.n 69 | serving.n 70 | setting.n 71 | sheathing.n 72 | shooting.n 73 | showing.n 74 | siding.n 75 | sighting.n 76 | sinking.n 77 | sitting.n 78 | smattering.n 79 | spanking.n 80 | swing.n 81 | thrashing.n 82 | tightening.n 83 | topping.n 84 | trimming.n 85 | turning.n 86 | undertaking.n 87 | undoing.n 88 | upbraiding.n 89 | whacking.n 90 | yearning.n 91 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.n.2.x: -------------------------------------------------------------------------------- 1 | aircraft.p 2 | bacteria.p 3 | basemen.n 4 | beano.p 5 | bellmen.p 6 | buffalo.p 7 | businessmen.p 8 | cacti.p 9 | chairmen.p 10 | chairwomen.p 11 | children.p 12 | chum.p 13 | clergymen.p 14 | congressmen.p 15 | corpora.p 16 | criteria.p 17 | data.p 18 | deer.p 19 | dice.p 20 | dodecahedra.n 21 | dressing.p 22 | emphases.p 23 | enzyme.p 24 | equilibria.p 25 | feet.p 26 | firemen.p 27 | fishermen.p 28 | flora.p 29 | flounder.p 30 | foremen.p 31 | freshmen.p 32 | frontmen.n 33 | fungi.p 34 | geese.p 35 | gentlemen.p 36 | gentry.p 37 | grandchildren.p 38 | gunmen.p 39 | hyphae.p 40 | kin.p 41 | larvae.p 42 | latter.p 43 | lobstermen.p 44 | mailmen.p 45 | manga.n 46 | media.p 47 | men.p 48 | mice.p 49 | milkmen.p 50 | millenia.p 51 | nemeses.p 52 | papaya.p 53 | people.p 54 | perch.p 55 | personae.p 56 | personnel.p 57 | phenomena.p 58 | policemen.p 59 | police.p 60 | policewomen.p 61 | quanta.n 62 | radii.n 63 | rebellion.p 64 | salesmen.p 65 | salmon.p 66 | sheep.p 67 | shrubbery.p 68 | smelt.p 69 | spokesmen.p 70 | spokeswomen.p 71 | statesmen.n 72 | subgenera.n 73 | tambon.n 74 | teeth.p 75 | trivia.n 76 | undersigned.p 77 | waterfowl.p 78 | women.p 79 | world.p 80 | zucchini.p 81 | zuchini.p 82 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.1.p: -------------------------------------------------------------------------------- 1 | accounted_for 2 | added_to 3 | adhered_to 4 | agreed_upon 5 | appealed_to 6 | approved_of 7 | arranged_for 8 | arrived_at 9 | asked_for 10 | attended_to 11 | barked_at 12 | belched_at 13 | called_for 14 | cared_for 15 | catered_to 16 | clung_to 17 | complied_with 18 | conceived_of 19 | coped_with 20 | counted_on 21 | dealt_with 22 | decided_on 23 | depended_on 24 | disapproved_of 25 | discriminated_against 26 | dispensed_with 27 | done_for 28 | dreamed_of 29 | dreamt_of 30 | embarked_on 31 | entered_into 32 | fought_with 33 | frowned_on 34 | frowned_upon 35 | gazed_upon 36 | glared_at 37 | gossiped_about 38 | heard_from 39 | hoped_for 40 | improved_on 41 | improved_upon 42 | interfered_with 43 | jumped_on 44 | laughed_at 45 | lied_to 46 | listened_to 47 | lived_in 48 | longed_for 49 | looked_at 50 | looked_down_on 51 | monkeyed_with 52 | negotiated_with 53 | objected_to 54 | operated_on 55 | paid_for 56 | planned_for 57 | pointed_at 58 | pointed_to 59 | prayed_for 60 | presided_over 61 | ratted_on 62 | reckoned_with 63 | referred_to 64 | relied_on 65 | resorted_to 66 | ruled_on 67 | sat_on 68 | screamed_at 69 | searched_for 70 | shouted_at 71 | slept_in 72 | spoken_to 73 | stared_at 74 | stepped_on 75 | talked_about 76 | talked_to 77 | tended_to 78 | thought_of 79 | toyed_with 80 | tried_for 81 | trifled_with 82 | uncalled_for 83 | undreamed_of 84 | undreamt_of 85 | voted_for 86 | voted_on 87 | wished_for 88 | yelled_at 89 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.10.1: -------------------------------------------------------------------------------- 1 | acknowledge.q 2 | add.q 3 | admit.q 4 | advance.q 5 | affirm.q 6 | agree.q 7 | allege.q 8 | announce.q 9 | argue.q 10 | ascertain.q 11 | assert.q 12 | assume.q 13 | aver.q 14 | believe.q 15 | blather.q 16 | bloviate.q 17 | brag.q 18 | calculate.q 19 | charge.q 20 | claim.q 21 | command.q 22 | comment.q 23 | complain.q 24 | concede.q 25 | conclude.q 26 | confess.q 27 | confirm.q 28 | contend.q 29 | continue.q 30 | decide.q 31 | declare.q 32 | deduce.q 33 | demand.q 34 | determine.q 35 | discern.q 36 | disclose.q 37 | discover.q 38 | dodge.q 39 | emphasize.q 40 | entreat.q 41 | envision.q 42 | equivocate.q 43 | evade.q 44 | exclaim.q 45 | explain.q 46 | fear.q 47 | figure.q 48 | guess.q 49 | hear.q 50 | hedge.q 51 | hem.q 52 | hesitate.q 53 | hint.q 54 | hold.q 55 | hope.q 56 | hypothesize.q 57 | imply.q 58 | inquire.q 59 | insist.q 60 | intimate.q 61 | know.q 62 | laugh.q 63 | learn.q 64 | lie.q 65 | maintain.q 66 | mean.q 67 | mumble.q 68 | murmur.q 69 | muse.q 70 | mutter.q 71 | note.q 72 | observe.q 73 | order.q 74 | pledge.q 75 | posit.q 76 | postulate.q 77 | predict.q 78 | presume.q 79 | presuppose.q 80 | prevaricate.q 81 | proclaim.q 82 | profess.q 83 | promise.q 84 | pronounce.q 85 | propose.q 86 | prove.q 87 | query.q 88 | question.q 89 | quiver.q 90 | realize.q 91 | reason.q 92 | recall.q 93 | reckon.q 94 | recognize.q 95 | recount.q 96 | reflect.q 97 | relate.q 98 | remark.q 99 | remember.q 100 | repeat.q 101 | reply.q 102 | report.q 103 | resolve.q 104 | respond.q 105 | retort.q 106 | reveal.q 107 | rule.q 108 | rumble.q 109 | sigh.q 110 | speculate.q 111 | stall.q 112 | state.q 113 | stipulate.q 114 | stress.q 115 | suggest.q 116 | suppose.q 117 | suspect.q 118 | swear.q 119 | swoon.q 120 | temporize.q 121 | tergiversate.q 122 | testify.q 123 | theorize.q 124 | think.q 125 | threaten.q 126 | urge.q 127 | utter.q 128 | vacillate.q 129 | vocalize.q 130 | warn.q 131 | waver.q 132 | whisper.q 133 | wonder.q 134 | word.q 135 | write.q 136 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.11.1: -------------------------------------------------------------------------------- 1 | bawl.q 2 | croak.q 3 | cry.q 4 | hiss.q 5 | rant.q 6 | scream.q 7 | shout.q 8 | sing.q 9 | snort.q 10 | sob.q 11 | speak.q 12 | spit.q 13 | squawk.q 14 | squeak.q 15 | squeal.q 16 | stammer.q 17 | warble.q 18 | yell.q 19 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.11.2: -------------------------------------------------------------------------------- 1 | bawls.q 2 | croaks.q 3 | cries.q 4 | hisses.q 5 | rants.q 6 | screams.q 7 | shouts.q 8 | sings.q 9 | snorts.q 10 | sobs.q 11 | speaks.q 12 | spits.q 13 | squawks.q 14 | squeaks.q 15 | squeals.q 16 | stammers.q 17 | warbles.q 18 | yells.q 19 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.11.3: -------------------------------------------------------------------------------- 1 | bawled.q-d 2 | croaked.q-d 3 | cried.q-d 4 | hissed.q-d 5 | ranted.q-d 6 | screamed.q-d 7 | shouted.q-d 8 | singed.q-d 9 | snorted.q-d 10 | sobbed.q-d 11 | spake.q-d 12 | spoke.q-d 13 | spit.q-d 14 | squawked.q-d 15 | squeaked.q-d 16 | squealed.q-d 17 | stammered.q-d 18 | warbled.q-d 19 | yelled.q-d 20 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.11.4: -------------------------------------------------------------------------------- 1 | bawling.q 2 | croaking.q 3 | crying.q 4 | hissing.q 5 | ranting.q 6 | screaming.q 7 | shouting.q 8 | singing.q 9 | snorting.q 10 | sobing.q 11 | speaking.q 12 | spiting.q 13 | squawking.q 14 | squeaking.q 15 | squealing.q 16 | stammering.q 17 | warbling.q 18 | yelling.q 19 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.5.1: -------------------------------------------------------------------------------- 1 | agonize.v 2 | anguish.v 3 | barge.v 4 | bottom.v 5 | bow.v 6 | breeze.v 7 | brim.v 8 | cave.v 9 | caw.v 10 | clam.v 11 | clown.v 12 | crap.v 13 | crawl.v 14 | creep.v 15 | crop.v 16 | crouch.v 17 | cruise.v 18 | dart.v 19 | dive.v 20 | doze.v 21 | drift.v 22 | drone.v 23 | drowse.v 24 | fade.v 25 | fizzle.v 26 | flock.v 27 | flow.v 28 | foam.v 29 | gang.v 30 | gear.v 31 | goof.v 32 | gush.v 33 | hurry.v 34 | jet.v 35 | jog.v 36 | jut.v 37 | keel.v 38 | kneel.v 39 | knuckle.v 40 | lie.v 41 | limp.v 42 | linger.v 43 | listen.v 44 | loom.v 45 | lunge.v 46 | lurch.v 47 | mellow.v 48 | nestle.v 49 | opt.v 50 | peek.v 51 | peer.v 52 | perk.v 53 | peter.v 54 | pig.v 55 | pine.v 56 | plonk.v 57 | plop.v 58 | puff.v 59 | riffle.v 60 | rot.v 61 | ruck.v 62 | sally.v 63 | scoot.v 64 | scream.v 65 | scurry.v 66 | seep.v 67 | shack.v 68 | shop.v 69 | shrivel.v 70 | shy.v 71 | skid.v 72 | slack.v 73 | slave.v 74 | sleep.v 75 | slim.v 76 | slink.v 77 | slope.v 78 | slump.v 79 | soar.v 80 | soldier.v 81 | spurt.v 82 | squat.v 83 | step.v 84 | stoop.v 85 | stream.v 86 | stroll.v 87 | strut.v 88 | stumble.v 89 | swoop.v 90 | team.v 91 | tense.v 92 | toddle.v 93 | tramp.v 94 | trickle.v 95 | trudge.v 96 | veer.v 97 | waft.v 98 | zoom.v 99 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.5.2: -------------------------------------------------------------------------------- 1 | agonizes.v 2 | anguishes.v 3 | barges.v 4 | bottoms.v 5 | bows.v 6 | breezes.v 7 | brims.v 8 | caves.v 9 | caws.v 10 | clams.v 11 | clowns.v 12 | craps.v 13 | crawls.v 14 | creeps.v 15 | crops.v 16 | crouchs.v 17 | cruises.v 18 | darts.v 19 | dives.v 20 | dozes.v 21 | drifts.v 22 | drones.v 23 | drowses.v 24 | fades.v 25 | fizzles.v 26 | flocks.v 27 | flows.v 28 | foams.v 29 | gangs.v 30 | gears.v 31 | goofs.v 32 | gushes.v 33 | hurries.v 34 | jets.v 35 | jogs.v 36 | juts.v 37 | keels.v 38 | kneels.v 39 | knuckles.v 40 | lies.v 41 | limps.v 42 | lingers.v 43 | listens.v 44 | looms.v 45 | lunges.v 46 | lurchs.v 47 | mellows.v 48 | nestles.v 49 | opts.v 50 | peeks.v 51 | peers.v 52 | perks.v 53 | peters.v 54 | pigs.v 55 | pines.v 56 | plonks.v 57 | plops.v 58 | puffs.v 59 | riffles.v 60 | rots.v 61 | rucks.v 62 | sallies.v 63 | scoots.v 64 | screams.v 65 | scurries.v 66 | seeps.v 67 | shacks.v 68 | shies.v 69 | shops.v 70 | shrivels.v 71 | skids.v 72 | slacks.v 73 | slaves.v 74 | sleeps.v 75 | slims.v 76 | slinks.v 77 | slopes.v 78 | slumps.v 79 | soars.v 80 | soldiers.v 81 | spurts.v 82 | squats.v 83 | steps.v 84 | stoops.v 85 | streams.v 86 | strolls.v 87 | struts.v 88 | stumbles.v 89 | swoops.v 90 | teams.v 91 | tenses.v 92 | toddles.v 93 | tramps.v 94 | trickles.v 95 | trudges.v 96 | veers.v 97 | wafts.v 98 | zooms.v 99 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.5.3: -------------------------------------------------------------------------------- 1 | agonized.v-d 2 | anguished.v-d 3 | barged.v-d 4 | bottomed.v-d 5 | bowed.v-d 6 | breezed.v-d 7 | brimmed.v-d 8 | caved.v-d 9 | cawed.v-d 10 | cawwed.v-d 11 | clammed.v-d 12 | clowned.v-d 13 | crapped.v-d 14 | crawled.v-d 15 | crept.v-d 16 | cropped.v-d 17 | crouched.v-d 18 | cruised.v-d 19 | darted.v-d 20 | dived.v-d 21 | dove.v-d 22 | dozed.v-d 23 | drifted.v-d 24 | droned.v-d 25 | drowsed.v-d 26 | faded.v-d 27 | fizzled.v-d 28 | flocked.v-d 29 | flowed.v-d 30 | foamed.v-d 31 | ganged.v-d 32 | geared.v-d 33 | goofed.v-d 34 | gushed.v-d 35 | hurried.v-d 36 | jetted.v-d 37 | jogged.v-d 38 | jutted.v-d 39 | keeled.v-d 40 | kneeled.v-d 41 | knelt.v-d 42 | knuckled.v-d 43 | lied.v-d 44 | limped.v-d 45 | lingered.v-d 46 | listened.v-d 47 | loomed.v-d 48 | lunged.v-d 49 | lurched.v-d 50 | mellowed.v-d 51 | nestled.v-d 52 | opted.v-d 53 | peeked.v-d 54 | peered.v-d 55 | perked.v-d 56 | petered.v-d 57 | pigged.v-d 58 | pined.v-d 59 | plonked.v-d 60 | plopped.v-d 61 | puffed.v-d 62 | riffled.v-d 63 | rotted.v-d 64 | rucked.v-d 65 | sallied.v-d 66 | scooted.v-d 67 | screamed.v-d 68 | scurried.v-d 69 | seeped.v-d 70 | shacked.v-d 71 | shied.v-d 72 | shopped.v-d 73 | shriveled.v-d 74 | shrivelled.v-d 75 | skidded.v-d 76 | slacked.v-d 77 | slaved.v-d 78 | slept.v-d 79 | slimmed.v-d 80 | slinked.v-d 81 | sloped.v-d 82 | slumped.v-d 83 | soared.v-d 84 | soldiered.v-d 85 | spurted.v-d 86 | squatted.v-d 87 | stepped.v-d 88 | stooped.v-d 89 | streamed.v-d 90 | strolled.v-d 91 | strutted.v-d 92 | stumbled.v-d 93 | swooped.v-d 94 | teamed.v-d 95 | tensed.v-d 96 | toddled.v-d 97 | tramped.v-d 98 | trickled.v-d 99 | trudged.v-d 100 | veered.v-d 101 | wafted.v-d 102 | zoomed.v-d 103 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.5.4: -------------------------------------------------------------------------------- 1 | agonizing.v 2 | anguishing.v 3 | barging.v 4 | bottoming.v 5 | bowing.v 6 | breezing.v 7 | brimming.v 8 | caving.v 9 | cawing.v 10 | cawwing.v 11 | clamming.v 12 | clowning.v 13 | crapping.v 14 | crawling.v 15 | creeping.v 16 | cropping.v 17 | crouching.v 18 | cruising.v 19 | darting.v 20 | diving.v 21 | dozing.v 22 | drifting.v 23 | droning.v 24 | drowsing.v 25 | fading.v 26 | fizzling.v 27 | flocking.v 28 | flowing.v 29 | foaming.v 30 | ganging.v 31 | gearing.v 32 | goofing.v 33 | gushing.v 34 | hurrying.v 35 | jetting.v 36 | jogging.v 37 | jutting.v 38 | keeling.v 39 | kneeling.v 40 | knuckling.v 41 | limping.v 42 | lingering.v 43 | listening.v 44 | looming.v 45 | lunging.v 46 | lurching.v 47 | lying.v 48 | mellowing.v 49 | nestling.v 50 | opting.v 51 | peeking.v 52 | peering.v 53 | perking.v 54 | petering.v 55 | pigging.v 56 | pining.v 57 | plonking.v 58 | plopping.v 59 | puffing.v 60 | riffling.v 61 | rotting.v 62 | rucking.v 63 | sallying.v 64 | scooting.v 65 | screaming.v 66 | screamin'.v 67 | scurrying.v 68 | seeping.v 69 | shacking.v 70 | shopping.v 71 | shriveling.v 72 | shrivelling.v 73 | shying.v 74 | skidding.v 75 | slacking.v 76 | slaving.v 77 | sleeping.v 78 | slimming.v 79 | slinking.v 80 | sloping.v 81 | slumping.v 82 | soaring.v 83 | soldiering.v 84 | spurting.v 85 | squatting.v 86 | stepping.v 87 | stooping.v 88 | streaming.v 89 | strolling.v 90 | strutting.v 91 | stumbling.v 92 | swooping.v 93 | teaming.v 94 | tensing.v 95 | toddling.v 96 | tramping.v 97 | trickling.v 98 | trudging.v 99 | veering.v 100 | wafting.v 101 | zooming.v 102 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.8.1: -------------------------------------------------------------------------------- 1 | auction.v 2 | bandy.v 3 | bar.v 4 | batten.v 5 | block.v 6 | blot.v 7 | blurt.v 8 | board.v 9 | book.v 10 | bottle.v 11 | bundle.v 12 | cage.v 13 | carry.v 14 | cart.v 15 | chalk.v 16 | chase.v 17 | chuck.v 18 | clutter.v 19 | cover.v 20 | crank.v 21 | dam.v 22 | dish.v 23 | divide.v 24 | dole.v 25 | dredge.v 26 | dump.v 27 | egg.v 28 | eke.v 29 | export.v 30 | factor.v 31 | fax.v 32 | fix.v 33 | fling.v 34 | fob.v 35 | gouge.v 36 | ham.v 37 | hash.v 38 | hoist.v 39 | jack.v 40 | jazz.v 41 | jot.v 42 | kick.v 43 | ladle.v 44 | lay.v 45 | lift.v 46 | link.v 47 | load.v 48 | lock.v 49 | lop.v 50 | mail.v 51 | map.v 52 | mark.v 53 | mete.v 54 | mull.v 55 | muss.v 56 | nail.v 57 | palm.v 58 | patch.v 59 | pave.v 60 | pen.v 61 | phase.v 62 | phone.v 63 | pick.v 64 | piece.v 65 | pin.v 66 | plug.v 67 | prick.v 68 | prop.v 69 | punch.v 70 | rack.v 71 | rein.v 72 | rig.v 73 | rile.v 74 | rinse.v 75 | roughen.v 76 | rough.v 77 | save.v 78 | scale.v 79 | scare.v 80 | screen.v 81 | shore.v 82 | single.v 83 | size.v 84 | skim.v 85 | skittle.v 86 | smuggle.v 87 | sop.v 88 | sort.v 89 | spice.v 90 | stack.v 91 | stake.v 92 | stave.v 93 | string.v 94 | stuff.v 95 | suss.v 96 | sweep.v 97 | tack.v 98 | tape.v 99 | tear.v 100 | throw.v 101 | tide.v 102 | tie.v 103 | top.v 104 | total.v 105 | toughen.v 106 | track.v 107 | wad.v 108 | wash.v 109 | wear.v 110 | wick.v 111 | wring.v 112 | yank.v 113 | zip.v 114 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.8.2: -------------------------------------------------------------------------------- 1 | auctions.v 2 | bandies.v 3 | bars.v 4 | battens.v 5 | blocks.v 6 | blots.v 7 | blurts.v 8 | boards.v 9 | books.v 10 | bottles.v 11 | bundles.v 12 | cages.v 13 | carries.v 14 | carts.v 15 | chalks.v 16 | chases.v 17 | chucks.v 18 | clutters.v 19 | covers.v 20 | cranks.v 21 | cuts.v 22 | dams.v 23 | dishes.v 24 | divides.v 25 | doles.v 26 | dredges.v 27 | dumps.v 28 | eggs.v 29 | ekes.v 30 | exports.v 31 | factors.v 32 | faxes.v 33 | fixes.v 34 | flings.v 35 | fobs.v 36 | gouges.v 37 | hams.v 38 | hashes.v 39 | hoists.v 40 | jacks.v 41 | jazzes.v 42 | jots.v 43 | kicks.v 44 | ladles.v 45 | lays.v 46 | lifts.v 47 | links.v 48 | loads.v 49 | locks.v 50 | lops.v 51 | mails.v 52 | maps.v 53 | marks.v 54 | metes.v 55 | mulls.v 56 | musses.v 57 | nails.v 58 | palms.v 59 | patches.v 60 | paves.v 61 | pens.v 62 | phases.v 63 | phones.v 64 | picks.v 65 | pieces.v 66 | pins.v 67 | plugs.v 68 | pricks.v 69 | props.v 70 | punches.v 71 | racks.v 72 | reins.v 73 | rigs.v 74 | riles.v 75 | rinses.v 76 | roughens.v 77 | roughs.v 78 | saves.v 79 | scales.v 80 | scares.v 81 | screens.v 82 | shores.v 83 | singles.v 84 | sizes.v 85 | skims.v 86 | skittles.v 87 | smuggles.v 88 | sops.v 89 | sorts.v 90 | spices.v 91 | stacks.v 92 | stakes.v 93 | staves.v 94 | strings.v 95 | stuffs.v 96 | susses.v 97 | sweeps.v 98 | tacks.v 99 | tapes.v 100 | tears.v 101 | throws.v 102 | tides.v 103 | ties.v 104 | tops.v 105 | totals.v 106 | toughens.v 107 | tracks.v 108 | wads.v 109 | washes.v 110 | wears.v 111 | wicks.v 112 | wrings.v 113 | yanks.v 114 | zips.v 115 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.8.3: -------------------------------------------------------------------------------- 1 | auctioned.v-d 2 | bandied.v-d 3 | barred.v-d 4 | battened.v-d 5 | blocked.v-d 6 | blotted.v-d 7 | blurted.v-d 8 | boarded.v-d 9 | booked.v-d 10 | bottled.v-d 11 | bundled.v-d 12 | caged.v-d 13 | carried.v-d 14 | carted.v-d 15 | chalked.v-d 16 | chased.v-d 17 | chucked.v-d 18 | cluttered.v-d 19 | covered.v-d 20 | cranked.v-d 21 | dammed.v-d 22 | dished.v-d 23 | divided.v-d 24 | doled.v-d 25 | dredged.v-d 26 | dumped.v-d 27 | egged.v-d 28 | eked.v-d 29 | exported.v-d 30 | factored.v-d 31 | faxed.v-d 32 | fixed.v-d 33 | flinged.v-d 34 | flung.v-d 35 | fobbed.v-d 36 | gouged.v-d 37 | hammed.v-d 38 | hashed.v-d 39 | hoisted.v-d 40 | jacked.v-d 41 | jazzed.v-d 42 | jotted.v-d 43 | kicked.v-d 44 | ladled.v-d 45 | laid.v-d 46 | lifted.v-d 47 | linked.v-d 48 | loaded.v-d 49 | locked.v-d 50 | lopped.v-d 51 | mailed.v-d 52 | mapped.v-d 53 | marked.v-d 54 | meted.v-d 55 | mulled.v-d 56 | mussed.v-d 57 | nailed.v-d 58 | palmed.v-d 59 | patched.v-d 60 | paved.v-d 61 | penned.v-d 62 | phased.v-d 63 | phoned.v-d 64 | picked.v-d 65 | pieced.v-d 66 | pinned.v-d 67 | plugged.v-d 68 | pricked.v-d 69 | propped.v-d 70 | punched.v-d 71 | racked.v-d 72 | reined.v-d 73 | rigged.v-d 74 | riled.v-d 75 | rinsed.v-d 76 | roughed.v-d 77 | roughened.v-d 78 | saved.v-d 79 | scaled.v-d 80 | scared.v-d 81 | screened.v-d 82 | shored.v-d 83 | singled.v-d 84 | sized.v-d 85 | skimmed.v-d 86 | skittled.v-d 87 | smuggled.v-d 88 | sopped.v-d 89 | sorted.v-d 90 | spiced.v-d 91 | stacked.v-d 92 | staked.v-d 93 | staved.v-d 94 | stringed.v-d 95 | strung.v-d 96 | stuffed.v-d 97 | sussed.v-d 98 | swept.v-d 99 | tacked.v-d 100 | taped.v-d 101 | throwed.v-d 102 | tided.v-d 103 | tied.v-d 104 | topped.v-d 105 | totaled.v-d 106 | totalled.v-d 107 | toughened.v-d 108 | tracked.v-d 109 | wadded.v-d 110 | washed.v-d 111 | wicked.v-d 112 | wrung.v-d 113 | yanked.v-d 114 | zipped.v-d 115 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.8.4: -------------------------------------------------------------------------------- 1 | auctioning.v 2 | bandying.v 3 | barring.v 4 | battening.v 5 | blocking.v 6 | blotting.v 7 | blurting.v 8 | boarding.v 9 | booking.v 10 | bottling.v 11 | bundling.v 12 | caging.v 13 | carrying.v 14 | carting.v 15 | chalking.v 16 | chasing.v 17 | chucking.v 18 | cluttering.v 19 | covering.v 20 | cranking.v 21 | cutting.v 22 | damming.v 23 | dishing.v 24 | dividing.v 25 | doling.v 26 | dredging.v 27 | dumping.v 28 | egging.v 29 | eking.v 30 | exporting.v 31 | factoring.v 32 | faxing.v 33 | fixing.v 34 | flinging.v 35 | fobbing.v 36 | gouging.v 37 | hamming.v 38 | hashing.v 39 | hoisting.v 40 | jacking.v 41 | jazzing.v 42 | jotting.v 43 | kicking.v 44 | ladling.v 45 | laying.v 46 | lifting.v 47 | linking.v 48 | loading.v 49 | locking.v 50 | lopping.v 51 | mailing.v 52 | mapping.v 53 | marking.v 54 | meting.v 55 | mulling.v 56 | mussing.v 57 | nailing.v 58 | palming.v 59 | patching.v 60 | paving.v 61 | penning.v 62 | phasing.v 63 | phoning.v 64 | picking.v 65 | piecing.v 66 | pinning.v 67 | plugging.v 68 | pricking.v 69 | propping.v 70 | punching.v 71 | racking.v 72 | reining.v 73 | rigging.v 74 | riling.v 75 | rinsing.v 76 | roughening.v 77 | roughing.v 78 | saving.v 79 | scaling.v 80 | scaring.v 81 | screening.v 82 | shoring.v 83 | singling.v 84 | sizing.v 85 | skimming.v 86 | skittling.v 87 | smuggling.v 88 | sopping.v 89 | sorting.v 90 | spicing.v 91 | stacking.v 92 | staking.v 93 | staving.v 94 | stringing.v 95 | stuffing.v 96 | sussing.v 97 | sweeping.v 98 | tacking.v 99 | taping.v 100 | tearing.v 101 | throwing.v 102 | tiding.v 103 | topping.v 104 | totaling.v 105 | totalling.v 106 | toughening.v 107 | tracking.v 108 | tying.v 109 | wadding.v 110 | washing.v 111 | wearing.v 112 | wicking.v 113 | wringing.v 114 | yanking.v 115 | zipping.v 116 | -------------------------------------------------------------------------------- /data/lg/data/en/words/words.v.8.5: -------------------------------------------------------------------------------- 1 | auctioning.g 2 | bandying.g 3 | barring.g 4 | battening.g 5 | blocking.g 6 | blotting.g 7 | blurting.g 8 | boarding.g 9 | booking.g 10 | bottling.g 11 | bundling.g 12 | caging.g 13 | carrying.g 14 | carting.g 15 | chalking.g 16 | chasing.g 17 | chucking.g 18 | cluttering.g 19 | covering.g 20 | cranking.g 21 | cutting.g 22 | damming.g 23 | dishing.g 24 | dividing.g 25 | doling.g 26 | dredging.g 27 | dumping.g 28 | egging.g 29 | eking.g 30 | exporting.g 31 | factoring.g 32 | faxing.g 33 | fixing.g 34 | flinging.g 35 | fobbing.g 36 | gouging.g 37 | hamming.g 38 | hashing.g 39 | hoisting.g 40 | jacking.g 41 | jazzing.g 42 | jotting.g 43 | kicking.g 44 | ladling.g 45 | laying.g 46 | lifting.g 47 | linking.g 48 | loading.g 49 | locking.g 50 | lopping.g 51 | mailing.g 52 | mapping.g 53 | marking.g 54 | meting.g 55 | mulling.g 56 | mussing.g 57 | nailing.g 58 | palming.g 59 | patching.g 60 | paving.g 61 | penning.g 62 | phasing.g 63 | phoning.g 64 | picking.g 65 | piecing.g 66 | pinning.g 67 | plugging.g 68 | pricking.g 69 | propping.g 70 | punching.g 71 | racking.g 72 | reining.g 73 | rigging.g 74 | riling.g 75 | rinsing.g 76 | roughening.g 77 | roughing.g 78 | saving.g 79 | scaling.g 80 | scaring.g 81 | screening.g 82 | shoring.g 83 | singling.g 84 | sizing.g 85 | skimming.g 86 | skittling.g 87 | smuggling.g 88 | sopping.g 89 | sorting.g 90 | spicing.g 91 | stacking.g 92 | staking.g 93 | staving.g 94 | stringing.g 95 | stuffing.g 96 | sussing.g 97 | sweeping.g 98 | tacking.g 99 | taping.g 100 | tearing.g 101 | throwing.g 102 | tiding.g 103 | topping.g 104 | totaling.g 105 | totalling.g 106 | toughening.g 107 | tracking.g 108 | tying.g 109 | wadding.g 110 | washing.g 111 | wearing.g 112 | wicking.g 113 | wringing.g 114 | yanking.g 115 | zipping.g 116 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | # Aigents Server Documentation 2 | The following takes toghether resources on Aigents server building, testig, deployment, integration and operations. 3 | 4 | 1. [Aigents Server requirements, configuration, operation and API usage](aigents_server.md) 5 | 1. [Aigents Server Integration for News Syndication on Channel (Area) basis](aigents_integration_news_channel.md) 6 | 1. [Aigents Server Integration for News Syndication on User (Peer) basis](aigents_integration_news_user.md) 7 | 1. [Aigents Server Integration for Chat Bots in Messengers](aigents_integration_chat_bots.md) 8 | 1. [Aigents Server Integration for Telegram](aigents_telegram.md) 9 | 1. [Aigents Personal Social Reports](aigents_reports.md) 10 | 1. [Aigents News Monitoring — Tips and Tricks](https://medium.com/@aigents/aigents-news-monitoring-tips-and-tricks-ab8d2ede2fa5) 11 | 1. [Aigents Aigents Project Contact Information](aigents_contacts.md) 12 | 13 | ![https://aigents.com/](https://aigents.com/img/aigents_wrench.png) 14 | -------------------------------------------------------------------------------- /doc/aigents_contacts.md: -------------------------------------------------------------------------------- 1 | # Aigents® Project Contact Information 2 | 3 | ![https://aigents.com/](https://aigents.com/img/aigents_wrench.png) 4 | 5 | To stay in touch with Aigents creators and maintainers for updates, help and feedback, use the following channels: 6 | 7 | 1. Via email (contact at aigents dot com): ![contact at aigents dot com](https://aigents.com/img/contactataigents.png) 8 | 1. On Facebook: 9 | 1. [Aigents Bot on Messenger](https://www.messenger.com/t/aigents) 10 | 1. [Aigents Page](https://www.facebook.com/aigents) 11 | 1. [Artificial General Intelligence Group (Russian)](https://www.facebook.com/groups/agirussia) 12 | 1. [Social Intelligence Group (Russian)](https://www.facebook.com/groups/socialintelligence) 13 | 1. On Telegram 14 | 1. [Aigents Bot](https://web.telegram.org/#/im?p=@AigentsBot) 15 | 1. [Aigents Group (English)](https://t.me/aigents) 16 | 1. [Aigents Group (Russian)](https://t.me/aigentsrussia) 17 | 1. [Artificial General Intelligence Group (Russian)](https://t.me/agirussia) 18 | 1. [Social Intelligence Group (Russian)](https://t.me/collectivei) 19 | 1. On [YouTube](https://youtube.com/aigents) 20 | 1. On [Twitter](https://twitter.com/@aigents) 21 | 1. On [Medium](https://medium.com/@aigents) 22 | 1. On [Reddit](https://reddit.com/r/aigents) 23 | 1. On [Steemit](https://steemit.com/@aigents) 24 | 1. On [Minds](https://minds.com/aigents) 25 | 1. On [WT.Social](https://wt.social/wt/aigents) 26 | 1. On [Golos (Russian)](https://golos.id/@aigents) 27 | 1. On [VKontakte (Russian)](https://vk.com/aigents) 28 | 29 | 30 | ![https://aigents.com/](https://aigents.com/img/aigents_wrench.png) -------------------------------------------------------------------------------- /doc/papers/2014/AgentBeliefKolonin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/doc/papers/2014/AgentBeliefKolonin.pdf -------------------------------------------------------------------------------- /doc/papers/2014/AgentLanguageKolonin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/doc/papers/2014/AgentLanguageKolonin.pdf -------------------------------------------------------------------------------- /doc/papers/2014/AgentWatchingKolonin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/doc/papers/2014/AgentWatchingKolonin.pdf -------------------------------------------------------------------------------- /doc/papers/2015/ZONT-2015-Agent-Language-Kolonin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/doc/papers/2015/ZONT-2015-Agent-Language-Kolonin.pdf -------------------------------------------------------------------------------- /html/en/img/aigents-be.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-be.png -------------------------------------------------------------------------------- /html/en/img/aigents-find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-find.png -------------------------------------------------------------------------------- /html/en/img/aigents-like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-like.png -------------------------------------------------------------------------------- /html/en/img/aigents-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-start.png -------------------------------------------------------------------------------- /html/en/img/aigents-stay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-stay.png -------------------------------------------------------------------------------- /html/en/img/aigents-tell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-tell.png -------------------------------------------------------------------------------- /html/en/img/aigents-timely.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/en/img/aigents-timely.png -------------------------------------------------------------------------------- /html/en/img/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | Page Redirection 9 | 10 | 11 | 12 | If you are not redirected automatically, follow the link to aigents.com 13 | 14 | 15 | -------------------------------------------------------------------------------- /html/en/project.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Aigents Project 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 |
23 | 24 |
25 |
26 | 27 | 28 |
29 | People
30 | We are creating the team to enable structural changes on the Internet, to shift from a conventional "centralized" model of search and social interactions toward a "multi-polar" model, granting rights and abilities to individual users and communities. We are about to make information search really intelligent and automated, getting it to serve people. 31 |
32 |

Project Leader
Anton Kolonin
Ph.D
33 |
Americas Distribution
(wanted)
34 |
Business Development
(wanted)
35 |
Europe/Middle East Distribution
(wanted)
36 |
Asia Distribution
(wanted)
37 | 38 |
39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /html/graph_report.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Aigents Graphs Demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 38 |
39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /html/img/Google_Play_Store_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/Google_Play_Store_48.png -------------------------------------------------------------------------------- /html/img/aigents-location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents-location.png -------------------------------------------------------------------------------- /html/img/aigents_heternet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_heternet.png -------------------------------------------------------------------------------- /html/img/aigents_platforms.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_platforms.jpg -------------------------------------------------------------------------------- /html/img/aigents_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_wrench.png -------------------------------------------------------------------------------- /html/img/akolonin-mirror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/akolonin-mirror.png -------------------------------------------------------------------------------- /html/img/akolonin64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/akolonin64.png -------------------------------------------------------------------------------- /html/img/amazon-apps-store-us-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/amazon-apps-store-us-white.png -------------------------------------------------------------------------------- /html/img/compreact.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/compreact.ico -------------------------------------------------------------------------------- /html/img/compreact_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/compreact_logo.gif -------------------------------------------------------------------------------- /html/img/contactataigents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/contactataigents.png -------------------------------------------------------------------------------- /html/img/mic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/mic.png -------------------------------------------------------------------------------- /html/img/micr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/micr.png -------------------------------------------------------------------------------- /html/long.html: -------------------------------------------------------------------------------- 1 | 2 | here is long text. google cofounder calls advances in artificial intelligence the most significant development in computing in my lifetime,” but warns of ethical concerns. . . april 27, 2018 | author: emma grey ellis emma grey ellis how red-pill culture jumped the fence and got to kanye west . popularized by misogynists and fueled by white supremacists, a metaphor born in the matrix is now espoused by the most popular rapper in the world. . . april 27, 2018 quite the spectacles . . 1 . 2 . 3 . 4 . ... . 21528 . . . most popular transportation the crazy, complex engineering of honda's new clarity hybrid . author: eric adams eric adams . business google cofounder sergey brin warns of ai's dark side . author: tom simonite tom simonite . science the creepy genetics behind the golden state killer case . author: megan molteni megan molteni . culture how red-pill culture jumped the fence and got to kanye west . author: emma grey ellis emma grey ellis . gear apple’s done making airport routers, so try these instead . author: brian barrett brian barrett . gear best weekend tech deals: 200gb microsd, ecovacs deebot, apple ipad . author: wired wired . science fukushima’s other big problem: a million tons of radioactive water . author: vince beiser vince beiser . photo ominous views of japan's new concrete seawalls . author: michael hardy michael hardy . . more stories . . . . . . . subscribe . advertise . site map . press center . faq . accessibility help . customer care . contact us . securedrop . t-shirt collection . newsletter . wired staff . jobs . rss . . cnmn collection use of this site constitutes acceptance of our user agreement (effective 3/21/12) and privacy policy (effective 3/21/12). affiliate link policy . your california privacy rights . the material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of condé nast . . it was long text. 3 | 4 | -------------------------------------------------------------------------------- /html/run.sh: -------------------------------------------------------------------------------- 1 | #Python 2 2 | #sudo python -m SimpleHTTPServer 80 3 | #Python 3 4 | sudo python3 -m http.server 80 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/about.html: -------------------------------------------------------------------------------- 1 | 2 | Our mission 3 |
4 | Company management 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/sitea/contacts.html: -------------------------------------------------------------------------------- 1 | 2 | Sales 3 |
4 | Support 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/sitea/corporate.html: -------------------------------------------------------------------------------- 1 | 2 | Our products make corporations more profitable! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/index.html: -------------------------------------------------------------------------------- 1 | 2 | About us 3 |
4 | Products info 5 |
6 | Contact us 7 | 8 | -------------------------------------------------------------------------------- /html/sitea/management.html: -------------------------------------------------------------------------------- 1 | 2 | John Doe 3 |
4 | CEO 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/sitea/mission.html: -------------------------------------------------------------------------------- 1 | 2 | Our mission is to make people happier! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/more.html: -------------------------------------------------------------------------------- 1 | 2 | Here is more information! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/personal.html: -------------------------------------------------------------------------------- 1 | 2 | Our products make people happier! 3 |
4 | More 5 | Home 6 | 7 | -------------------------------------------------------------------------------- /html/sitea/products.html: -------------------------------------------------------------------------------- 1 | 2 | Corporate 3 |
4 | Personal 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/sitea/run.sh: -------------------------------------------------------------------------------- 1 | sudo nohup python -m SimpleHTTPServer 80 & 2 | -------------------------------------------------------------------------------- /html/sitea/sales.html: -------------------------------------------------------------------------------- 1 | 2 | Get in touch with our sales! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/support.html: -------------------------------------------------------------------------------- 1 | 2 | Stay in touch with our support! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/sitea/test.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /html/siteb/about_company.html: -------------------------------------------------------------------------------- 1 | 2 | About our mission 3 |
4 | Company management information 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/siteb/company_management.html: -------------------------------------------------------------------------------- 1 | 2 | Doug Jones Founder 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/company_mission.html: -------------------------------------------------------------------------------- 1 | 2 | Delivering ethernal good to everyone! 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/company_products.html: -------------------------------------------------------------------------------- 1 | 2 | Products for midsize buisnesses 3 |
4 | Services for small businesses 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/siteb/contact_info.html: -------------------------------------------------------------------------------- 1 | 2 | Sales infromation 3 |
4 | Support information 5 |
6 | Home 7 | 8 | -------------------------------------------------------------------------------- /html/siteb/index.html: -------------------------------------------------------------------------------- 1 | 2 | Our products 3 |
4 | Contact information 5 |
6 | About our company 7 | 8 | -------------------------------------------------------------------------------- /html/siteb/midsize_business_products.html: -------------------------------------------------------------------------------- 1 | 2 | Midsize businesses valuate our products. 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/sales_info.html: -------------------------------------------------------------------------------- 1 | 2 | Are sales prepresentatives are available upon request. 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/small_business_products.html: -------------------------------------------------------------------------------- 1 | 2 | Small busiesses enjoy our services. 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/support_info.html: -------------------------------------------------------------------------------- 1 | 2 | Our support is availbe 24X7 3 |
4 | Home 5 | 6 | -------------------------------------------------------------------------------- /html/siteb/test.html: -------------------------------------------------------------------------------- 1 | xx xxx ceo presented. -------------------------------------------------------------------------------- /html/test.html: -------------------------------------------------------------------------------- 1 | в. городецкий написал два. -------------------------------------------------------------------------------- /html/test/Test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/test/Test.pdf -------------------------------------------------------------------------------- /html/test/atom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Example Feed 5 | 6 | 2003-12-13T18:30:02Z 7 | 8 | John Doe 9 | 10 | urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 11 | 12 | 13 | Atom-Powered Robots Run Amok 14 | 15 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 16 | 2020-02-02T18:30:02Z 17 | Some text about robots run amok 18 | 19 | 20 | 21 | Title about test feed 22 | 23 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 24 | 2020-02-02T18:30:02Z 25 | Text about test feed 26 | http://localtest.com/test/junk.jpg 27 | 28 | 29 | 30 | Old title about test feed 31 | 32 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 33 | 2019-12-13T18:30:02Z 34 | Old text about test feed 35 | 36 | 37 | 38 | Test with image 39 | 40 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 41 | 2020-02-02T18:30:02Z 42 | 43 | test_pic 44 | Text for test image]]> 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /html/test/cat/chinese.html: -------------------------------------------------------------------------------- 1 | chinese live in china -------------------------------------------------------------------------------- /html/test/cat/eagle.html: -------------------------------------------------------------------------------- 1 | eagle is a bird -------------------------------------------------------------------------------- /html/test/cat/fly.html: -------------------------------------------------------------------------------- 1 | fly is an insect -------------------------------------------------------------------------------- /html/test/cat/french.html: -------------------------------------------------------------------------------- 1 | french live in france -------------------------------------------------------------------------------- /html/test/cat/snake.html: -------------------------------------------------------------------------------- 1 | snake is a reptile -------------------------------------------------------------------------------- /html/test/garbage.jpg: -------------------------------------------------------------------------------- 1 | stub -------------------------------------------------------------------------------- /html/test/graphs/index.html: -------------------------------------------------------------------------------- 1 | 2 | Aigents Test Page 3 | 4 | 5 | This is a test page. The outside temperature is 22 C°. 6 | 7 | 8 | -------------------------------------------------------------------------------- /html/test/graphs/ontology.txt: -------------------------------------------------------------------------------- 1 | graph has direction 2 | direction can_be directed 3 | direction can_be undirected 4 | direction can_be both_directions 5 | graph has structure 6 | structure can_be hierarchic 7 | structure can_be acyclic 8 | structure can_be cyclic 9 | graph has meaning 10 | meaning can_be associative 11 | meaning can_be semantic 12 | graph has fuzziness 13 | fuzziness can_be unweighted 14 | fuzziness can_be weighted 15 | fuzziness can_be with_complex_weight 16 | graph can_be hypergraph 17 | hypergraph has arity 18 | graph can_be metagraph 19 | metagraph has order 20 | 21 | -------------------------------------------------------------------------------- /html/test/graphs/reputation.txt: -------------------------------------------------------------------------------- 1 | bob rates mary 0.1 2 | bob rates mary 0.2 3 | bob rates mary 0.3 4 | bob rates mary 0.4 5 | bob rates jane 0.6 6 | bob rates jane 0.9 7 | bob rates https://www.facebook.com/ 0.7 8 | bob rates https://steemit.com/ 1.0 9 | jane rates bob 0.4 10 | jane rates https://www.facebook.com/ 1.0 11 | mary rates bob 0.5 12 | mary rates https://www.facebook.com/ 0.9 13 | mary rates https://steemit.com/ 0.5 14 | https://steemit.com/ is site 15 | https://www.facebook.com/ is site 16 | https://steemit.com/ image https://aigents.com/ui/img/steemit_logo_new.png 17 | https://www.facebook.com/ image https://aigents.com/ui/img/fb_logo.png 18 | bob image https://aigents.com/ui/img/aigent32.png 19 | jane image https://aigents.com/ui/img/aigents_jane_64.png 20 | mary image https://aigents.com/ui/img/aigents_mary_64.png -------------------------------------------------------------------------------- /html/test/graphs/reputation1.txt: -------------------------------------------------------------------------------- 1 | bob rates ann 2 2 | ann rates bob 1 3 | jane rates ian 1 4 | ian rates john 2 5 | john rates jane 3 6 | phil rates sophia 1 7 | sophia rates scott 2 8 | scott rates patrick 3 9 | patrick rates phil 4 10 | -------------------------------------------------------------------------------- /html/test/graphs/reputation2.txt: -------------------------------------------------------------------------------- 1 | bob rates ann 2 2 | ann rates bob 1 3 | jane rates ian 1 4 | ian rates john 2 5 | john rates jane 3 6 | phil rates sophia 1 7 | sophia rates scott 2 8 | scott rates patrick 3 9 | patrick rates phil 4 10 | ann rates ian 0.5 11 | ian rates ann 0.5 12 | john rates scott 2 13 | scott rates john 2 -------------------------------------------------------------------------------- /html/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | Aigents Test Page 3 | 4 | 5 | This is a test page. The outside temperature is 22 C°. 6 | 7 | 8 | -------------------------------------------------------------------------------- /html/test/junk.jpg: -------------------------------------------------------------------------------- 1 | stub -------------------------------------------------------------------------------- /html/test/nlp/26_cat_tree.txt: -------------------------------------------------------------------------------- 1 | C01 0 1 0.5 child food human parent tool 0 0 0 0 0 2 | C02 0 2 0.16 before cake not now sausage 0 0 0 0 0 3 | C03 0 3 0.33 dad daughter mom son 0 0 0 0 4 | C04 0 4 0.25 hammer saw telescope 0 0 0 5 | C05 0 5 0 knocked sawed 1 1 6 | C06 0 6 0.33 binoculars chalk 0 0 7 | C07 0 7 0.25 has with 0 0 8 | C08 0 8 0 a 1 9 | C09 0 9 0 are 1 10 | C10 0 10 0 be 1 11 | C11 0 11 0 board 1 12 | C12 0 12 0 directors 1 13 | C13 0 13 0 her 1 14 | C14 0 14 0 his 1 15 | C15 0 15 0 is 1 16 | C16 0 16 0 liked 1 17 | C17 0 17 0 likes 1 18 | C18 0 18 0 of 1 19 | C19 0 19 0 on 1 20 | C20 0 20 0 sees 1 21 | C21 0 21 0 the 1 22 | C22 0 22 0 to 1 23 | C23 0 23 0 wants 1 24 | C24 0 24 0 was 1 25 | C25 0 25 0 wood 1 26 | C26 0 26 0 writes 1 27 | 1 27 0 tool 1 28 | 1 28 0 child human 1 1 29 | 1 29 0 food parent 1 1 30 | 2 30 0 now 1 31 | 2 31 0 cake sausage 1 1 32 | 2 32 0.33 before not 0 0 33 | 32 33 0 before 1 34 | 32 34 0 not 1 35 | 3 35 0 dad mom 1 1 36 | 3 36 0.8 daughter son 0 0 37 | 36 37 0 daughter 1 38 | 36 38 0 son 1 39 | 4 39 0 saw 1 40 | 4 40 0.5 hammer telescope 0 0 41 | 40 41 0 telescope 1 42 | 40 42 0 hammer 1 43 | 6 43 0 chalk 1 44 | 6 44 0 binoculars 1 45 | 7 45 0 with 1 46 | 7 46 0 has 1 -------------------------------------------------------------------------------- /html/test/nlp/28_cat_tree.txt: -------------------------------------------------------------------------------- 1 | C01 0 1 0.5 child food human parent tool 0 0 0 0 0 2 | C02 0 2 0.33 dad daughter mom son 0 0 0 0 3 | C03 0 3 0.25 hammer saw telescope 0 0 0 4 | C04 0 4 0 cake sausage 1 1 5 | C05 0 5 0 knocked sawed 1 1 6 | C06 0 6 0.33 before not 0 0 7 | C07 0 7 0.33 binoculars chalk 0 0 8 | C08 0 8 0.25 has with 0 0 9 | C09 0 9 0 a 1 10 | C10 0 10 0 are 1 11 | C11 0 11 0 be 1 12 | C12 0 12 0 board 1 13 | C13 0 13 0 directors 1 14 | C14 0 14 0 her 1 15 | C15 0 15 0 his 1 16 | C16 0 16 0 is 1 17 | C17 0 17 0 liked 1 18 | C18 0 18 0 likes 1 19 | C19 0 19 0 now 1 20 | C20 0 20 0 of 1 21 | C21 0 21 0 on 1 22 | C22 0 22 0 sees 1 23 | C23 0 23 0 the 1 24 | C24 0 24 0 to 1 25 | C25 0 25 0 wants 1 26 | C26 0 26 0 was 1 27 | C27 0 27 0 wood 1 28 | C28 0 28 0 writes 1 29 | None 1 29 0 tool 1 30 | None 1 30 0 child human 1 1 31 | None 1 31 0 food parent 1 1 32 | None 2 32 0 dad mom 1 1 33 | None 2 33 0.8 daughter son 0 0 34 | None 33 34 0 daughter 1 35 | None 33 35 0 son 1 36 | None 3 36 0 saw 1 37 | None 3 37 0.5 hammer telescope 0 0 38 | None 37 38 0 telescope 1 39 | None 37 39 0 hammer 1 40 | None 6 40 0 before 1 41 | None 6 41 0 not 1 42 | None 7 42 0 chalk 1 43 | None 7 43 0 binoculars 1 44 | None 8 44 0 with 1 45 | None 8 45 0 has 1 46 | None 33 46 0 daughter 1 47 | None 33 47 0 son 1 48 | None 37 48 0 telescope 1 49 | None 37 49 0 hammer 1 -------------------------------------------------------------------------------- /html/test/nlp/49_cat_tree.txt: -------------------------------------------------------------------------------- 1 | C01 47 0 0 a 1 2 | C02 0 1 0 are 1 3 | C03 0 2 0 be 1 4 | C04 40 3 0 before 1 5 | C05 41 4 0 binoculars 1 6 | C06 0 5 0 board 1 7 | C07 45 6 0 cake sausage 1 1 8 | C08 41 7 0 chalk 1 9 | C09 39 8 0 child human 1 1 10 | C10 42 9 0 dad mom 1 1 11 | C11 37 10 0 daughter 1 12 | C12 0 11 0 directors 1 13 | C13 39 12 0 food parent 1 1 14 | C14 38 13 0 hammer 1 15 | C15 43 14 0 has 1 16 | C16 47 15 0 her 1 17 | C17 47 16 0 his 1 18 | C18 0 17 0 is 1 19 | C19 0 18 0 knocked sawed 1 1 20 | C20 0 19 0 liked 1 21 | C21 0 20 0 likes 1 22 | C22 40 21 0 not 1 23 | C23 45 22 0 now 1 24 | C24 0 23 0 of 1 25 | C25 0 24 0 on 1 26 | C26 44 25 0 saw 1 27 | C27 0 26 0 sees 1 28 | C28 37 27 0 son 1 29 | C29 38 28 0 telescope 1 30 | C30 0 29 0 the 1 31 | C31 0 30 0 to 1 32 | C32 39 31 0 tool 1 33 | C33 0 32 0 wants 1 34 | C34 0 33 0 was 1 35 | C35 43 34 0 with 1 36 | C36 0 35 0 wood 1 37 | C37 0 36 0 writes 1 38 | C38 42 37 0.8 daughter son 0 0 39 | C39 44 38 0.5 hammer telescope 0 0 40 | C40 0 39 0.5 child food human parent tool 0 0 0 0 0 41 | C41 45 40 0.33 before not 0 0 42 | C42 0 41 0.33 binoculars chalk 0 0 43 | C43 46 42 0.33 dad daughter mom son 0 0 0 0 44 | C44 0 43 0.25 has with 0 0 45 | C45 48 44 0.25 hammer saw telescope 0 0 0 46 | C46 46 45 0.09 before cake not now sausage 0 0 0 0 0 47 | C47 48 46 0.08 before cake dad daughter mom not now sausage son 0 0 0 0 0 0 0 0 0 48 | C48 0 47 0.08 a her his 0 0 0 49 | C49 0 48 0.04 before cake dad daughter hammer mom not now sausage saw son telescope 0 0 0 0 0 0 0 0 0 0 0 0 -------------------------------------------------------------------------------- /html/test/nlp/cat_tree.txt: -------------------------------------------------------------------------------- 1 | C4 0 4 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ... 2 | C1 4 1 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ... 3 | C2 4 2 0.6 tuna herring fish eagle parrot bird fin wing 0.7 0.5 0.3 ... 4 | C3 0 3 0.9 is has 1.0 0.8 5 | -------------------------------------------------------------------------------- /html/test/nlp/cat_tree2.txt: -------------------------------------------------------------------------------- 1 | C2 0 1 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ... 2 | C1 1 2 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ... 3 | -------------------------------------------------------------------------------- /html/test/nlp/cat_tree_demo.txt: -------------------------------------------------------------------------------- 1 | C4 0 4 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ... 2 | C1 4 1 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ... 3 | C2 4 2 0.6 tuna herring fish eagle parrot bird fin wing 0.7 0.5 0.3 ... 4 | C3 0 3 0.9 is has 1.0 0.8 5 | C5 3 5 0.9 has 1.0 0.8 6 | C6 3 6 0.9 is 1.0 0.8 7 | C7 1 7 0.9 fish 1.0 0.8 8 | C8 1 8 0.9 bird 1.0 0.8 9 | C9 2 9 0.9 tuna 1.0 0.8 10 | C10 2 10 0.9 herring 1.0 0.8 11 | -------------------------------------------------------------------------------- /html/test/nlp/cat_tree_test.txt: -------------------------------------------------------------------------------- 1 | C01 0 1 0.0 . 0 2 | C02 0 2 0.0 LEFT-WALL 0 3 | C03 0 3 0.0 bird extremity fish 0 0 0 4 | C04 0 9 0.0 eagle herring parrot tuna feather scale fin wing 0 0 0 0 0 0 0 0 5 | 9 4 0.0 eagle herring parrot tuna 0 0 0 0 6 | 9 5 0.0 feather scale 0 0 7 | 9 6 0.0 fin wing 0 0 8 | C05 0 7 0.0 has 0 9 | C06 0 8 0.0 isa 0 -------------------------------------------------------------------------------- /html/test/nlp/dict_12C_2018-08-09_0005.4.0-connectors.dict.txt: -------------------------------------------------------------------------------- 1 | % Grammar Learner v.0.5 2018-08-09 08:55:42 UTC 2 | : V0v0v5+; 3 | : EN4us+; 4 | 5 | % C01 6 | "before": 7 | (C03C01-) or (C05C01-) or (C06C01-); 8 | 9 | % C02 10 | "cake" "sausage": 11 | {C03C02- or C08C02-} & {C02C04+}; 12 | 13 | % C03 14 | "liked" "likes": 15 | {C06C03- or C08C03- or C09C03-} & {C03C01+ or C03C02+ or C03C07+}; 16 | 17 | % C04 18 | "is" "was": 19 | {C02C04- or C06C04- or C08C04- or C09C04-} & {C04C05+ or C04C06+ or C04C07+ or C04C10+ or C04C11+}; 20 | 21 | % C05 22 | "food" "parent": 23 | {C04C05- or C08C05-} & {C05C01+}; 24 | 25 | % C06 26 | "daughter" "son": 27 | {C04C06- or C08C06-} & {C06C01+ or C06C03+ or C06C04+}; 28 | 29 | % C07 30 | "now": 31 | (C03C07-) or (C04C07-); 32 | 33 | % C08 34 | "LEFT-WALL" "a": 35 | (C08C02+) or (C08C03+) or (C08C04+) or (C08C05+) or (C08C06+) or (C08C09+) or (C08C10+) or (C08C12+); 36 | 37 | % C09 38 | "dad" "mom": 39 | {C08C09-} & {C09C03+ or C09C04+}; 40 | 41 | % C10 42 | "child" "human": 43 | (C04C10-) or (C08C10-); 44 | 45 | % C11 46 | "not": 47 | (C04C11-); 48 | 49 | % C12 50 | ".": 51 | (C08C12-); 52 | 53 | UNKNOWN-WORD: XXX+; 54 | 55 | % 12 word clusters, 12 Link Grammar rules. 56 | % Link Grammar file saved to: /home/obaskov/language-learning/output/POC-English-NoAmb-2018-08-09/POC-English-NoAmb_LG-English_connectors-DRK-connectors_LEFT-WALL_period_no-generalization/dict_12C_2018-08-09_0005.4.0.dict -------------------------------------------------------------------------------- /html/test/nlp/grammar_test_dict.txt: -------------------------------------------------------------------------------- 1 | % Grammar Learner v.0.4 2018-05-18 18:08:49 UTC 2 | : V0v0v4+; 3 | : EN4us+; 4 | 5 | % C01 6 | ".": 7 | (C03C01-) or (C04C01-); 8 | 9 | % C02 10 | "LEFT-WALL": 11 | (C02C04+); 12 | 13 | % C03 14 | "bird" "extremity" "fish": 15 | (C06C03- & C03C01+); 16 | 17 | % C04 18 | "eagle" "feather" "fin" "herring" "parrot" "scale" "tuna" "wing": 19 | (C02C04- & C04C05+) or (C02C04- & C04C06+) or (C05C04- & C04C01+); 20 | 21 | % C05 22 | "has": 23 | (C04C05- & C05C04+); 24 | 25 | % C06 26 | "isa": 27 | (C04C06- & C06C03+); 28 | 29 | UNKNOWN-WORD: XXX+; 30 | 31 | % 6 word clusters, 6 Link Grammar rules. 32 | % Link Grammar file saved to: /home/oleg/language-learning/output/Generalization-Tests-2018-05-18/POC-Turtle/MST_fixed_manually/disjuncts-ILE-disjuncts/LEFT-WALL_period/generalized_rules/poc-turtle_6C_2018-05-18_0004.4.0.dict -------------------------------------------------------------------------------- /html/test/nlp/index.html: -------------------------------------------------------------------------------- 1 | 2 | Aigents Test Page 3 | 4 | 5 | This is a test page. The outside temperature is 22 C°. 6 | 7 | 8 | -------------------------------------------------------------------------------- /html/test/nlp/mi_test.txt: -------------------------------------------------------------------------------- 1 | tuna isa 0.5755021714720909 2 | isa fish 1.5 3 | fish isa 1.5 4 | eagle isa 1.2035333940851327 5 | isa bird 1.6629650127224291 6 | isa tuna 1.1 7 | a b 1 8 | b a 1 9 | -------------------------------------------------------------------------------- /html/test/nlp/no_parent.txt: -------------------------------------------------------------------------------- 1 | C01 0 1 0.0 bird 0 2 | C02 0 2 0.0 eagle parrot 0 0 3 | C03 0 3 0.0 extremity 0 4 | C04 0 4 0.0 feather 0 5 | C05 0 5 0.0 fin 0 6 | C06 0 6 0.0 fish 0 7 | C07 0 7 0.0 has 0 8 | C02 0 8 0.0 herring tuna 0 0 9 | C02 0 9 0.0 isa 0 10 | C08 0 10 0.0 scale 0 11 | C09 0 11 0.0 wing 0 -------------------------------------------------------------------------------- /html/test/nlp/poc-english_4C_2018-06-06_0004.4.0.dict.txt: -------------------------------------------------------------------------------- 1 | % Grammar Learner v.0.4 2018-06-06 11:05:39 UTC 2 | : V0v0v4+; 3 | : EN4us+; 4 | 5 | % C01 6 | "are" "binoculars" "board" "sees" "to" "wants": 7 | (C01C01+) or (C01C01- & C01C03+) or (C01C01- & C01C04+) or (C02C01-) or (C03C01- & C01C01+ & C01C03+) or (C03C01- & C01C03+ & C01C01+) or (C03C01- & C01C03+ & C01C03+) or (C04C01- & C01C03+) or (C04C01- & C02C01-) or (C04C01- & C02C01- & C01C04+); 8 | 9 | % C02 10 | "directors" "hammer" "has" "liked" "on" "saw" "telescope" "with": 11 | (C02C02- & C02C01+) or (C02C02- & C02C02+) or (C02C02- & C03C02-) or (C02C04+) or (C03C02- & C02C01+) or (C03C02- & C02C02+) or (C03C02- & C02C02-) or (C03C02- & C02C03+) or (C03C02- & C02C03+ & C02C02+) or (C03C02- & C02C03+ & C02C03+) or (C03C02- & C02C04+) or (C04C02-) or (C04C02- & C02C01+) or (C04C02- & C02C02+) or (C04C02- & C02C04+); 12 | 13 | % C03 14 | "a" "before" "cake" "child" "dad" "daughter" "food" "her" "his" "human" "mom" "not" "now" "parent" "sausage" "son" "tool": 15 | (C01C03-) or (C01C03- & C03C03-) or (C02C03-) or (C02C03- & C03C02+) or (C03C01+) or (C03C02+) or (C03C03+) or (C03C03- & C01C03-) or (C03C03- & C03C04+) or (C03C03- & C04C03-) or (C03C04+) or (C04C03-); 16 | 17 | % C04 18 | "be" "chalk" "is" "knocked" "likes" "of" "sawed" "the" "was" "wood" "writes": 19 | (C01C04- & C04C02+) or (C02C04-) or (C02C04- & C04C03+) or (C03C04- & C04C02+) or (C03C04- & C04C02+ & C04C01+ & C04C02+) or (C03C04- & C04C02+ & C04C02+) or (C03C04- & C04C02+ & C04C02+ & C04C01+) or (C03C04- & C04C03+) or (C03C04- & C04C03+ & C04C03+) or (C03C04- & C04C03+ & C04C03+ & C04C03+) or (C03C04- & C04C04+ & C04C02+) or (C04C01+) or (C04C04+) or (C04C04- & C04C04-); 20 | 21 | UNKNOWN-WORD: XXX+; 22 | 23 | % 4 word clusters, 4 Link Grammar rules. 24 | % Link Grammar file saved to: /home/oleg/language-learning/output/POC-English-Amb-2018-06-06/POC-English-Amb/MST_fixed_manually/disjuncts-DRK-disjuncts/no-LEFT-WALL_no-period/generalized_rules/poc-english_4C_2018-06-06_0004.4.0.dict -------------------------------------------------------------------------------- /html/test/nlp/poc-english_5C_2018-06-06_0004.4.0.dict.txt: -------------------------------------------------------------------------------- 1 | % Grammar Learner v.0.4 2018-06-06 11:05:37 UTC 2 | : V0v0v4+; 3 | : EN4us+; 4 | 5 | % C01 6 | "directors" "has" "with": 7 | (C02C01-) or (C03C01- & C01C02+) or (C03C01- & C01C05+) or (C04C01- & C01C05+) or (C05C01- & C01C02+) or (C05C01- & C01C04+) or (C05C01- & C01C05+); 8 | 9 | % C02 10 | "are" "binoculars" "board" "of" "sees" "to" "wants" "wood": 11 | (C01C02-) or (C02C02+) or (C02C02- & C02C01+) or (C02C02- & C02C03+) or (C02C02- & C02C04+) or (C03C02- & C02C02+ & C02C03+) or (C03C02- & C02C03+ & C02C02+) or (C03C02- & C02C03+ & C02C03+) or (C05C02- & C02C03+) or (C05C02- & C04C02-) or (C05C02- & C05C02-) or (C05C02- & C05C02- & C02C02+); 12 | 13 | % C03 14 | "a" "before" "cake" "child" "dad" "daughter" "food" "her" "his" "human" "mom" "not" "now" "parent" "sausage" "son" "tool": 15 | (C02C03-) or (C02C03- & C03C03-) or (C03C01+) or (C03C02+) or (C03C03+) or (C03C03- & C02C03-) or (C03C03- & C03C04+) or (C03C03- & C03C05+) or (C03C03- & C05C03-) or (C03C04+) or (C03C05+) or (C04C03-) or (C05C03-) or (C05C03- & C03C01+); 16 | 17 | % C04 18 | "be" "chalk" "knocked" "likes" "sawed": 19 | (C01C04-) or (C02C04- & C04C05+) or (C03C04- & C04C02+ & C04C01+) or (C03C04- & C04C03+) or (C03C04- & C04C03+ & C04C03+); 20 | 21 | % C05 22 | "hammer" "is" "liked" "on" "saw" "telescope" "the" "was" "writes": 23 | (C01C05- & C03C05-) or (C03C05- & C01C05-) or (C03C05- & C05C01+ & C05C05+ & C05C02+) or (C03C05- & C05C03+) or (C03C05- & C05C03+ & C05C01+) or (C03C05- & C05C03+ & C05C03+) or (C03C05- & C05C03+ & C05C03+ & C05C03+) or (C03C05- & C05C05+) or (C03C05- & C05C05+ & C05C01+) or (C03C05- & C05C05+ & C05C02+ & C05C01+) or (C04C05- & C05C02+) or (C05C02+) or (C05C05+) or (C05C05- & C05C02+) or (C05C05- & C05C03+); 24 | 25 | UNKNOWN-WORD: XXX+; 26 | 27 | % 5 word clusters, 5 Link Grammar rules. 28 | % Link Grammar file saved to: /home/oleg/language-learning/output/POC-English-Amb-2018-06-06/POC-English-Amb/MST_fixed_manually/disjuncts-DRK-disjuncts/no-LEFT-WALL_no-period/generalized_rules/poc-english_5C_2018-06-06_0004.4.0.dict -------------------------------------------------------------------------------- /html/test/nlp/senses_demo.txt: -------------------------------------------------------------------------------- 1 | board ship 0.7 ship sail 0.9 0.6 2 | board directors 0.85 directors company enterprise 0.95 0.85 0.75 3 | board white 0.95 white chalk school write 1.0 0.95 0.8 0.75 4 | saw wood 0.8 wood board 0.9 0.6 5 | saw him 0.9 him her clearly yeasterday 1.0 0.9 0.8 0.7 6 | 7 | -------------------------------------------------------------------------------- /html/test/stuff.jpg: -------------------------------------------------------------------------------- 1 | stub -------------------------------------------------------------------------------- /html/test/text/debug_d0.txt: -------------------------------------------------------------------------------- 1 | Yes, I agree with Rob here, and actually compare AI to the Tractor. The tractor did make some individuals wealthy beyond normal, but also enabled overall wealth from agriculture. Water , in the case of the US, was the biggest hurtle. Now, all the small farmers are gone, and only agri-business remain… 2 | 3 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab… 4 | 5 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab… 6 | 7 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab… 8 | 9 | That is a question - whether Smart City is just about decentralised network of intelligent devices or it is also about community of intelligent people deriving social decentralised consensus wit help of Reputation System like this: https://blog.singularitynet.io/smart-communities-for-smart-cities-w… -------------------------------------------------------------------------------- /html/test/text/debug_da.txt: -------------------------------------------------------------------------------- 1 | That is a question - whether Smart City is just about decentralised network of intelligent devices or it is also about community of intelligent people deriving social decentralised consensus wit help of Reputation System like this: https://blog.singularitynet.io/smart-communities-for-smart-cities-w… 2 | 3 | Need your feedback. The Aigents platform has connected Facebook, Reddit, Steemit, Telegram and few other social communication media channels to the AI-based content monitoring for automatic news discovery from the static Internet, social feeds and instant messengers. https://blog.singularitynet.io/… -------------------------------------------------------------------------------- /html/test/text/debug_ja.txt: -------------------------------------------------------------------------------- 1 | ok so now i have a little better idea of what aigents is, and it’s actually better for what i’m trying to do than i realized in many ways. This is gonna be a huge leap forward for the ability to manage a group network. I could go on and on but i want to ask you something. I realize this may not be p… 2 | 3 | What you’re doing here is awesome! I hope to cooperate with us and maybe try use your aigents for my whole group, and group projects. It seems like aigents would be awesome to help manage the whole group, but AI for a group project called “The AI and humans project” is what i really hope to find. (I… -------------------------------------------------------------------------------- /html/test/text/debug_ro.txt: -------------------------------------------------------------------------------- 1 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab… 2 | 3 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab… -------------------------------------------------------------------------------- /html/test1.html: -------------------------------------------------------------------------------- 1 | Here is the story. Everyone knows that dolphins are cool. They are just great. -------------------------------------------------------------------------------- /html/test2.html: -------------------------------------------------------------------------------- 1 | Here is the story. Everyone knows that dolphins are cool. They are just great. -------------------------------------------------------------------------------- /html/testUpper.html: -------------------------------------------------------------------------------- 1 | case Upper 2 | -------------------------------------------------------------------------------- /html/think.html: -------------------------------------------------------------------------------- 1 | there is bird in the sky. there is bird on the tree. 2 | there is fried banana. there is fancy stuff. 3 | there is banana tree. there is mocking bird. there is life jacket. there is life style. 4 | here is bird in the sky. here is bird on the tree. 5 | here is small pig. here is large ball. here is happy life. here is life vest. here is long life. here is angry bird. here is bird nest. here is bird egg. here is flying bird. here is bird cage. 6 | here is banana on the plate. here is pen on the table. -------------------------------------------------------------------------------- /html/ui/aigents-graph.css: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /html/ui/aigents-settings.js: -------------------------------------------------------------------------------- 1 | var site_url = "https://aigents.com"; var base_url = "https://aigents.com/al";//new production setup 2 | //var site_url = "http://localtest.com"; var base_url = "http://localtest.com:1180";//test setup 3 | 4 | var animation_enabled = false; 5 | var auto_refreshing = true; 6 | var logged_in = false; 7 | var logged_email = null; 8 | var refresh_millis = 10*60*1000;//how often to refresh news count 9 | var refresh_delay_millis = 5000;//how soon refresh the screen after re-think 10 | var timeout_millis = 0*1000;//how long to wait on AJAX requsts 11 | var status_seconds = 20;//how long the status stays shown and how fast it is show on idle 12 | var action_seconds = 5;//how long the action stays shown 13 | var display_emails = false;//whether emails of friends should be displayed or not in the view 14 | 15 | var paypal_setup = 'production' 16 | var paypal_app_id = 'AX14cg6ozAF8xi5iNOGcbnwajvsCZ-uR1iZl_EvAMXjttWrQV7Buzp9tOX329J3qcvS0fIIRy9kl-kvr' 17 | var paypal_monthly_usd = 9 18 | var paypal_yearly_usd = 99 19 | var rate_usd_rub = 63 20 | -------------------------------------------------------------------------------- /html/ui/img/Google_Play_Store_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/Google_Play_Store_48.png -------------------------------------------------------------------------------- /html/ui/img/Messenger_Logo_Color_RGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/Messenger_Logo_Color_RGB.png -------------------------------------------------------------------------------- /html/ui/img/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/add.png -------------------------------------------------------------------------------- /html/ui/img/aigent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent.png -------------------------------------------------------------------------------- /html/ui/img/aigent128.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent128.ico -------------------------------------------------------------------------------- /html/ui/img/aigent32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32.jpg -------------------------------------------------------------------------------- /html/ui/img/aigent32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32.png -------------------------------------------------------------------------------- /html/ui/img/aigent32left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32left.png -------------------------------------------------------------------------------- /html/ui/img/aigent_blank64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent_blank64.png -------------------------------------------------------------------------------- /html/ui/img/aigent_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent_btn.png -------------------------------------------------------------------------------- /html/ui/img/back32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/back32.png -------------------------------------------------------------------------------- /html/ui/img/back64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/back64.png -------------------------------------------------------------------------------- /html/ui/img/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/del.png -------------------------------------------------------------------------------- /html/ui/img/discourse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/discourse.png -------------------------------------------------------------------------------- /html/ui/img/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/edit.png -------------------------------------------------------------------------------- /html/ui/img/eth32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eth32.png -------------------------------------------------------------------------------- /html/ui/img/eyes_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_down.png -------------------------------------------------------------------------------- /html/ui/img/eyes_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_large.png -------------------------------------------------------------------------------- /html/ui/img/eyes_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_left.png -------------------------------------------------------------------------------- /html/ui/img/eyes_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_normal.png -------------------------------------------------------------------------------- /html/ui/img/eyes_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_right.png -------------------------------------------------------------------------------- /html/ui/img/eyes_sleep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_sleep.png -------------------------------------------------------------------------------- /html/ui/img/eyes_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_small.png -------------------------------------------------------------------------------- /html/ui/img/eyes_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_up.png -------------------------------------------------------------------------------- /html/ui/img/fb_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/fb_logo.png -------------------------------------------------------------------------------- /html/ui/img/folks_bb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_bb.png -------------------------------------------------------------------------------- /html/ui/img/folks_gb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_gb.png -------------------------------------------------------------------------------- /html/ui/img/folks_wb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_wb.png -------------------------------------------------------------------------------- /html/ui/img/g+138.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/g+138.png -------------------------------------------------------------------------------- /html/ui/img/g+46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/g+46.png -------------------------------------------------------------------------------- /html/ui/img/golos_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/golos_logo.png -------------------------------------------------------------------------------- /html/ui/img/google_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/google_icon.png -------------------------------------------------------------------------------- /html/ui/img/google_signin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/google_signin.png -------------------------------------------------------------------------------- /html/ui/img/graph_gb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/graph_gb.png -------------------------------------------------------------------------------- /html/ui/img/news.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/news.png -------------------------------------------------------------------------------- /html/ui/img/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/ok.png -------------------------------------------------------------------------------- /html/ui/img/paypal-connect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal-connect.png -------------------------------------------------------------------------------- /html/ui/img/paypal_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon.png -------------------------------------------------------------------------------- /html/ui/img/paypal_icon_no_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon_no_border.png -------------------------------------------------------------------------------- /html/ui/img/paypal_icon_no_border_grayed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon_no_border_grayed.png -------------------------------------------------------------------------------- /html/ui/img/paypal_logged.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_logged.png -------------------------------------------------------------------------------- /html/ui/img/reddit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit.png -------------------------------------------------------------------------------- /html/ui/img/reddit_grayed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit_grayed.png -------------------------------------------------------------------------------- /html/ui/img/reddit_logged.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit_logged.png -------------------------------------------------------------------------------- /html/ui/img/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/rss.png -------------------------------------------------------------------------------- /html/ui/img/singularitynet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/singularitynet.png -------------------------------------------------------------------------------- /html/ui/img/sites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/sites.png -------------------------------------------------------------------------------- /html/ui/img/slack_add_to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/slack_add_to.png -------------------------------------------------------------------------------- /html/ui/img/slack_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/slack_logo.png -------------------------------------------------------------------------------- /html/ui/img/steemit_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/steemit_logo.png -------------------------------------------------------------------------------- /html/ui/img/steemit_logo_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/steemit_logo_new.png -------------------------------------------------------------------------------- /html/ui/img/talks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/talks.png -------------------------------------------------------------------------------- /html/ui/img/telegram_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/telegram_circle.png -------------------------------------------------------------------------------- /html/ui/img/telegram_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/telegram_square.png -------------------------------------------------------------------------------- /html/ui/img/things.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/things.png -------------------------------------------------------------------------------- /html/ui/img/twitter_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/twitter_logo.png -------------------------------------------------------------------------------- /html/ui/img/twitter_logo_grayed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/twitter_logo_grayed.png -------------------------------------------------------------------------------- /html/ui/img/vk_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/vk_logo.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_45_0078ae_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_45_0078ae_1x400.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_55_f8da4e_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_55_f8da4e_1x400.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_75_79c9ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_75_79c9ec_1x400.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_45_e14f1c_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_45_e14f1c_500x100.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_50_6eac2c_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_50_6eac2c_500x100.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_75_2191c0_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_75_2191c0_500x100.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-bg_inset-hard_100_fcfdfd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_inset-hard_100_fcfdfd_1x100.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_0078ae_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_0078ae_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_056b93_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_056b93_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_d8e7f3_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_d8e7f3_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_e0fdff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_e0fdff_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f5e175_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f5e175_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f7a50d_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f7a50d_256x240.png -------------------------------------------------------------------------------- /html/ui/jquery-ui-1.11.4.custom/images/ui-icons_fcd113_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_fcd113_256x240.png -------------------------------------------------------------------------------- /php/agent/gettest.php: -------------------------------------------------------------------------------- 1 | 29 | array( 30 | 'method' => 'POST', 31 | 'content' => $postdata 32 | ) 33 | ); 34 | 35 | $context = stream_context_create($opts); 36 | 37 | $result = file_get_contents('http://144.217.94.119:8090', false, $context); 38 | file_put_contents('uralresp_raw.txt',$result); 39 | $result = mb_convert_encoding($result, 'UTF-8'); 40 | file_put_contents('uralresp_utf8.txt',$result); 41 | echo($result); 42 | 43 | ?> 44 | -------------------------------------------------------------------------------- /resources/add32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/add32.png -------------------------------------------------------------------------------- /resources/add64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/add64.png -------------------------------------------------------------------------------- /resources/aigent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent.gif -------------------------------------------------------------------------------- /resources/aigent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent.png -------------------------------------------------------------------------------- /resources/aigent128.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent128.ico -------------------------------------------------------------------------------- /resources/aigent128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent128.png -------------------------------------------------------------------------------- /resources/aigent32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent32.png -------------------------------------------------------------------------------- /resources/aigentnews128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigentnews128.png -------------------------------------------------------------------------------- /resources/body128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body128.png -------------------------------------------------------------------------------- /resources/body32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body32.png -------------------------------------------------------------------------------- /resources/body64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body64.png -------------------------------------------------------------------------------- /resources/del32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/del32.png -------------------------------------------------------------------------------- /resources/del64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/del64.png -------------------------------------------------------------------------------- /resources/edit32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/edit32.png -------------------------------------------------------------------------------- /resources/edit64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/edit64.png -------------------------------------------------------------------------------- /resources/eyes_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_down.png -------------------------------------------------------------------------------- /resources/eyes_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_large.png -------------------------------------------------------------------------------- /resources/eyes_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_left.png -------------------------------------------------------------------------------- /resources/eyes_normal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_normal.gif -------------------------------------------------------------------------------- /resources/eyes_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_normal.png -------------------------------------------------------------------------------- /resources/eyes_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_right.png -------------------------------------------------------------------------------- /resources/eyes_sleep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_sleep.png -------------------------------------------------------------------------------- /resources/eyes_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_small.png -------------------------------------------------------------------------------- /resources/eyes_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_up.png -------------------------------------------------------------------------------- /resources/folks.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/folks.gif -------------------------------------------------------------------------------- /resources/folks32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/folks32.png -------------------------------------------------------------------------------- /resources/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Rsrc-Class-Path: ./ servlet.jar mail.jar javax.json-1.0.2.jar jfxrt.jar pdfbox-app-2.0.18.jar 3 | Class-Path: ./ servlet.jar mail.jar javax.json-1.0.2.jar jfxrt.jar pdfbox-app-2.0.18.jar 4 | Rsrc-Main-Class: net.webstructor.gui.App 5 | Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader 6 | 7 | -------------------------------------------------------------------------------- /resources/news.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/news.gif -------------------------------------------------------------------------------- /resources/news32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/news32.png -------------------------------------------------------------------------------- /resources/ok32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/ok32.png -------------------------------------------------------------------------------- /resources/props32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/props32.png -------------------------------------------------------------------------------- /resources/props64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/props64.png -------------------------------------------------------------------------------- /resources/sites.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/sites.gif -------------------------------------------------------------------------------- /resources/sites32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/sites32.png -------------------------------------------------------------------------------- /resources/talks.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks.gif -------------------------------------------------------------------------------- /resources/talks32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks32.gif -------------------------------------------------------------------------------- /resources/talks32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks32.png -------------------------------------------------------------------------------- /resources/things.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/things.gif -------------------------------------------------------------------------------- /resources/things32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/things32.png -------------------------------------------------------------------------------- /resources/w.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/w.gif -------------------------------------------------------------------------------- /src/main/java/net/webstructor/agi/LazyPlayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.agi; 25 | 26 | class LazyPlayer extends Player {//Stays in place, sometimes lucky 27 | @Override 28 | int move(Game g,State s) { 29 | return 0; 30 | } 31 | @Override 32 | void init() { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/agi/Player.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.agi; 25 | 26 | import java.util.ArrayList; 27 | 28 | abstract class Player { 29 | ArrayList states = new ArrayList(); 30 | abstract int move(Game g,State s); 31 | abstract void init(); 32 | State selfState() {//self-state 33 | return null; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/agi/ReactivePlayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.agi; 25 | 26 | class ReactivePlayer extends Player {//Follows the ball, lose always 27 | @Override 28 | int move(Game g,State s) { 29 | int Xball = s.p.get("Xball"); 30 | int Xrocket = s.p.get("Xrocket"); 31 | return Xball < Xrocket ? -1 : Xball > Xrocket ? + 1 : 0; 32 | } 33 | @Override 34 | void init() { 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/agi/SimplePredictivePlayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.agi; 25 | 26 | class SimplePredictivePlayer extends Player {//Follows the ball direction, always winds 27 | State old; 28 | @Override 29 | int move(Game g,State s) { 30 | int move = 0; 31 | if (old != null) { 32 | int oldXball = old.p.get("Xball"); 33 | int Xball = s.p.get("Xball"); 34 | int Xdir = Xball - oldXball; 35 | move = Xdir < 0 ? -1 : Xdir > 0 ? + 1 : 0; 36 | //TODO: eliminate this! 37 | if (!g.domain("Xrocket").contains(s.p.get("Xrocket")+move))//reflection 38 | move *= -1; 39 | } 40 | old = s; 41 | return move; 42 | } 43 | @Override 44 | void init() { 45 | old = null; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/al/All.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.al; 25 | 26 | import java.util.Collection; 27 | 28 | public class All extends Set { 29 | public All(Collection coll) { 30 | this.set = Set.toArray(coll); 31 | } 32 | public All(Object[] set) { 33 | this.set = set; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/al/Iter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.al; 25 | 26 | public class Iter { 27 | Set set; 28 | int pos; 29 | public Iter(Set set) { 30 | pos = 0; 31 | this.set = set; 32 | } 33 | public void pos(int pos) { 34 | this.pos = pos;//TODO: validation 35 | } 36 | public int cur() { 37 | return pos; 38 | } 39 | public Object get() {//TODO:can be String or Set, right? 40 | return has() ? set.get(pos): null; 41 | } 42 | public Object next() {//TODO:can be String or Set, right? 43 | return has() ? set.get(pos++): null; 44 | } 45 | public boolean has() { 46 | return pos < set.size(); 47 | } 48 | public int size() { 49 | return set.size(); 50 | } 51 | public String toString() { 52 | return set != null && pos < set.size() ? set.get(pos).toString() : "null"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/al/Ref.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.al; 25 | 26 | public class Ref extends Term { 27 | private Object obj = null; 28 | public Ref(boolean is,Object ref) { 29 | super(is); 30 | obj = ref; 31 | } 32 | public int size() { 33 | return obj == null? 0: 1; 34 | } 35 | public Object get(int i) { 36 | return obj; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/al/Seq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.al; 25 | 26 | public class Seq extends Set { 27 | //TODO:extend All 28 | public Seq(Object[] set) { 29 | this.set = set; 30 | } 31 | 32 | //tear the head off 33 | public Seq reduceHead() { 34 | if (size() <= 1) 35 | return null; 36 | Object[] ext = new Object[size() - 1]; 37 | for (int i = 1; i < size(); i++) 38 | ext[i - 1] = get(i); 39 | return new Seq(ext); 40 | } 41 | 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/al/Term.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.al; 25 | 26 | public abstract class Term { 27 | private boolean is; 28 | 29 | public abstract int size(); 30 | public abstract Object get(int i); 31 | public Term() { 32 | is = true; 33 | } 34 | public Term(boolean is) { 35 | this.is = is; 36 | } 37 | public boolean is() { 38 | return this.is; 39 | } 40 | public void is(boolean is) { 41 | this.is = is; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/BasicCalculator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public class BasicCalculator implements Calculator 27 | { 28 | Server m_server; 29 | public BasicCalculator(Server server) 30 | { 31 | m_server = server; 32 | } 33 | 34 | public void extractDocFeatures(int docId, int[] tokenId) 35 | { 36 | // TODO: Add PilotCalculator.extractDocFeatures implementation 37 | } 38 | 39 | public Relation suggestDocCats(int docId) 40 | { 41 | // TODO: Add PilotCalculator.suggestDocCats implementation 42 | return null; 43 | } 44 | 45 | public void calculateFeatureMetrics() 46 | { 47 | // TODO: Add PilotCalculator.calculateFeatureMetrics implementation 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/Calculator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public interface Calculator 27 | { 28 | void extractDocFeatures(int docId,int[] tokenId); // extracts the features from the document given the current feature metrics 29 | Relation suggestDocCats(int docId); // given the current feature metrics, suggest categories for a document 30 | void calculateFeatureMetrics(); // recalculate all feature metrics, given the current set of document-category relations 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/InteractorItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public class InteractorItem implements Item 27 | { 28 | int m_id; 29 | String m_name; 30 | public InteractorItem(int id, String name) 31 | { 32 | m_id = id; 33 | m_name = name; 34 | } 35 | 36 | 37 | public int getId() 38 | { 39 | return m_id; 40 | } 41 | 42 | public String getName() 43 | { 44 | return m_name; 45 | } 46 | 47 | //public int compareTo(Item i) 48 | public int compareTo(Object i) 49 | { 50 | return getName().compareTo(((Item)i).getName()); 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/Item.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | //public interface Item extends Comparable 27 | public interface Item extends Comparable 28 | { 29 | int getId(); //get unique item id of the item 30 | String getName(); //get symbolic representation of the item 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/Reader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | import java.io.IOException; 27 | 28 | public interface Reader 29 | { 30 | boolean canReadDoc(String docName); // checks if document docName (URI, URL or path) can be read by given reader 31 | String readDocData(String docName) throws IOException; // reads the documents into character data 32 | } -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/RelevantItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | //public interface RelevantItem extends Comparable 27 | public interface RelevantItem extends Comparable 28 | { 29 | int getId(); //get unique id of the relation 30 | int getRelevantId(); //get id of the relevant item 31 | double getRelevance(); //get item relevance 32 | int getConfirmation(); //get relevance confirmation 33 | String getRelevantName(); //get name of the relevant item 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/Server.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public interface Server 27 | { 28 | Reader[] getReaders(); 29 | Interactor getInteractor(); 30 | Processor getProcessor(); 31 | Calculator getCalculator(); 32 | Tokenizer getTokenizer(); 33 | Storager getStorager(); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/TextStringReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public class TextStringReader implements Reader 27 | { 28 | public TextStringReader() 29 | { 30 | // 31 | // TODO: Add constructor logic here 32 | // 33 | } 34 | 35 | public boolean canReadDoc(String docName) 36 | { 37 | return docName!=null; 38 | } 39 | 40 | public String readDocData(String docName) 41 | { 42 | // may need to dup the name, to help gc 43 | return docName; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/cat/Tokenizer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.cat; 25 | 26 | public interface Tokenizer 27 | { 28 | int[] getTokens(String docData,boolean ignoreCase,boolean lasyAdd) throws Exception; // reads the documents having it translated into the vector of tokens given the list of tokens specified by Processor, having the unexistent tokens added to the list 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/comm/HTTPHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.comm; 25 | 26 | import java.io.IOException; 27 | 28 | /** 29 | * @param args - array with url, header, request 30 | * @return true if handled 31 | * @throws IOException 32 | */ 33 | public interface HTTPHandler { 34 | public boolean handleHTTP(HTTPeer parent, String url, String header, String request, String cookie) throws IOException; 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Actioner.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | /** 27 | * Abstract doer of an Action 28 | * @author akolonin 29 | * 30 | */ 31 | public abstract class Actioner { 32 | public abstract boolean act(Environment env, Storager storager, Thing context, Thing actor); 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Agent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | public abstract class Agent extends Thing 27 | { 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Environment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | import java.io.File; 27 | 28 | import net.webstructor.data.Cacher; 29 | 30 | public interface Environment { 31 | public void debug(String str); 32 | public void error(String str,Throwable e); 33 | public int checkMemory();//in range 0-100 percents 34 | public File getFile(String path); 35 | public void register(String path, Cacher cacher); 36 | public void register(String action, Actioner actioner);//TODO: add class/name, add option to unregister 37 | public Actioner getActioner(String action);//TODO: actually act as an Actioner? 38 | public String[] getActions();//TODO: set instead of String[] 39 | public Anything getSelf();//properties 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Mistake.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | public class Mistake extends Exception { 27 | private static final long serialVersionUID = -6353534528104549163L; 28 | public final static String no_right = "no right"; 29 | public final static String no_thing = "no thing"; 30 | public Mistake(String text){ 31 | super(text); 32 | } 33 | public static String message(Throwable e) { 34 | if (e == null) 35 | return "Unknown"; 36 | String m = e.getMessage(); 37 | return m != null ? m : e.getClass().getSimpleName(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Named.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | public interface Named { 27 | /** 28 | * Name of the object/compontent/handler like "facebook", "www", "ethereum", "rss", "twitter", "reddit", "discourse", etc. 29 | * @return name of the object/compontent/handler (lowercase expected) 30 | */ 31 | public String name(); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Scheduler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | import net.webstructor.al.Period; 27 | 28 | //TODO: make the Updater generic class for all Spidereres, Saver, etc. 29 | public abstract class Scheduler { 30 | long period = Period.HOUR; 31 | long scheduled = 0; 32 | public void setPeriod(long period){ 33 | this.period = period; 34 | } 35 | //TODO: make synchronized 36 | public void schedule(){ 37 | scheduled = 0; 38 | } 39 | protected abstract void run(); 40 | public void check(boolean force) { 41 | long time = System.currentTimeMillis(); 42 | if (force || scheduled < time){ 43 | run(); 44 | scheduled = (scheduled == 0 ? time : scheduled) + period; 45 | } 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/core/Updater.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.core; 25 | 26 | import java.io.IOException; 27 | 28 | public interface Updater { 29 | public boolean update(Thing peer, String sessionKey, String subject, String content, String signature) throws IOException; 30 | public boolean notifyable(Thing peer); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/data/Cacher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2018-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.data; 25 | 26 | import java.util.Date; 27 | 28 | public interface Cacher { 29 | //TODO: make parameter 30 | public static final int MEMORY_THRESHOLD = 80; 31 | 32 | public void clear(boolean everything, Date till); 33 | public void free(); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/data/Linker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.data; 25 | 26 | public interface Linker { 27 | 28 | public void count(Object key,int count); 29 | 30 | public void count(Object key,ComplexNumber[] cn); 31 | 32 | public void count(Object key); 33 | 34 | public void count(Object key, double value); 35 | 36 | public void change(Object key, Number value); 37 | 38 | public java.util.Set keys(); 39 | 40 | public int size(); 41 | 42 | public Object get(Object key); 43 | 44 | public Number value(Object key); 45 | 46 | public Number value(Object key, int def); 47 | 48 | /** 49 | * @return array of key-value pairs with value as Integer in range 0..100 50 | */ 51 | public Object[][] toRanked(); 52 | public Object[][] toData(); 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/data/OrderedSet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.data; 25 | 26 | import java.util.ArrayList; 27 | import java.util.HashSet; 28 | 29 | public class OrderedSet extends ArrayList { 30 | private static final long serialVersionUID = -7114034521031949539L; 31 | private HashSet set; 32 | 33 | public synchronized boolean add(T t){ 34 | if (set.contains(t)) 35 | return false; 36 | set.add(t); 37 | add(t); 38 | return true; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/data/Stater.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2018-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.data; 25 | 26 | import java.util.Map; 27 | 28 | import net.webstructor.core.Environment; 29 | 30 | public interface Stater { 31 | public void init(String name, Environment env, String path); 32 | public void save(); 33 | public void clear(); 34 | public boolean hasState(Object date, String[] domains);//TODO: domains/dimensions!? 35 | public Map getLinkers(Object date); 36 | public Map getLinkers(Object date, String[] domains);//TODO: domains/dimensions!? 37 | //TODO: put 38 | public void add(Object date, Object account, Object domain, Object dimension, int intvalue); 39 | public void add(Object date, Object domain, Object dimension, Linker byaccount); 40 | } 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/data/Transcoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.data; 25 | 26 | public interface Transcoder { 27 | public Object transcode(Object source); 28 | public Object recovercode(Object source); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/gram/lang/Character.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.gram.lang; 25 | 26 | public interface Character 27 | { 28 | public static final char LEFT_WALL = '_'; 29 | public static final char RIGHT_WALL = ' '; 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/gram/main/Filer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.gram.main; 25 | 26 | import net.webstructor.main.*; 27 | import net.webstructor.gram.core.MemoryStore; 28 | 29 | public class Filer extends Mainer 30 | { 31 | 32 | public static void main(String args[]) 33 | { 34 | if (args.length<2) 35 | { 36 | println("Not enough arguments"); 37 | return; 38 | } 39 | else 40 | { 41 | println("Opening ADB file "+args[0]); 42 | MemoryStore store = new MemoryStore(args[0]); 43 | try { 44 | println("Saving ADB file"+args[1]); 45 | store.save(args[1],true); 46 | } catch (Exception e) { 47 | System.out.println(e); 48 | } 49 | println("Done"); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/gram/util/Format.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.gram.util; 25 | 26 | public class Format 27 | { 28 | public static final String m_fieldDelim = ";"; 29 | public static final String m_elementDelim = ","; 30 | public static final String m_openSetDelim = "("; 31 | public static final String m_closeSetDelim = ")"; 32 | public static final String m_openArrayDelim = "["; 33 | public static final String m_closeArrayDelim = "]"; 34 | public static final String m_innerStringDelim = ""; 35 | 36 | public static Format defaultFormat = new Format();//TODO: maybe needed later for flexibility or cleanup otherwise 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/MineServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine; 10 | 11 | import java.io.*; 12 | import javax.servlet.*; 13 | import javax.servlet.http.*; 14 | 15 | public class MineServlet extends HttpServlet { 16 | static final long serialVersionUID = 20080503; 17 | public void doGet(HttpServletRequest request, HttpServletResponse response) 18 | throws IOException, ServletException 19 | { 20 | response.setContentType("text/html"); 21 | PrintWriter out = response.getWriter(); 22 | out.println(""); 23 | out.println(""); 24 | out.println("Hello from Mine!"); 25 | out.println(""); 26 | out.println(""); 27 | out.println("

Hello from Mine!

"); 28 | out.println("

Your query string is " + ((HttpServletRequest)request).getQueryString()+"

"); 29 | out.println(""); 30 | out.println(""); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/auth/AdmServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.auth; 10 | 11 | import java.util.HashMap; 12 | import net.webstructor.mine.util.StringContext; 13 | import net.webstructor.mine.store.Storage; 14 | import net.webstructor.mine.store.SimpleMemoryStorage; 15 | 16 | public class AdmServer { 17 | 18 | private static AdmServer m_instance = null; 19 | 20 | private HashMap m_sessions = new HashMap(); 21 | 22 | public static AdmServer getInstance(String path){ 23 | if (m_instance == null) 24 | m_instance = new AdmServer(path); 25 | return m_instance; 26 | } 27 | 28 | String m_path; 29 | Storage m_storage = null; 30 | 31 | public AdmServer(String path){ 32 | m_path = path; 33 | } 34 | 35 | //TODO synchronize 36 | public String createSession(String username,String password,StringContext stringContext){ 37 | if (m_storage == null) { 38 | try { 39 | m_storage = new SimpleMemoryStorage(); 40 | m_storage.startUp(m_path,new StoreSchema()); 41 | } catch (Exception e) { 42 | return e.toString(); 43 | } 44 | } 45 | //TODO check username and password 46 | AuthSession sess = new AuthSession( 47 | this, 48 | new AdmSession(this,stringContext), 49 | stringContext); 50 | Integer id = sess.getId(); 51 | m_sessions.put(id,sess); 52 | return id.toString(); 53 | } 54 | 55 | //TODO synchronize 56 | public AuthSession getSession(String sessionid){ 57 | Integer id = Integer.valueOf(sessionid); 58 | return (AuthSession)m_sessions.get(id); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/auth/Asset.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.auth; 10 | 11 | public class Asset { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/auth/Group.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.auth; 10 | 11 | public class Group { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/core/CoreRelation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.core; 10 | 11 | public interface CoreRelation 12 | { 13 | int getType(); 14 | int getId(); 15 | int getId(int idx); 16 | String getName(); 17 | int getArity(); 18 | int[] getIds(); 19 | boolean equals(CoreRelation r); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/core/Id.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.core; 10 | 11 | public interface Id 12 | { 13 | // Nullary relations (arity = 0) 14 | public static final int TYPE = 1; 15 | public static final int TEXTTYPE = 2; 16 | public static final int DOMAIN = 3; 17 | public static final int FEATURETYPE = 4; 18 | public static final int TOKENTYPE = 16; //20070604 19 | // Unary relations (arity = 1, Parent) 20 | public static final int TOKEN = 5; 21 | public static final int TEXT = 6; 22 | public static final int CATEGORY = 7; 23 | public static final int FEATURE = 8; 24 | // Binary relations (arity = 2) 25 | public static final int TEXTCATEGORY = 9; 26 | public static final int TEXTTOKEN = 10; 27 | public static final int TEXTFEATURE = 11; 28 | public static final int FEATURETOKEN = 12; 29 | public static final int CATEGORYFEATURE = 13; 30 | public static final int CATEGORYDOMAIN = 14; 31 | public static final int CATEGORYCATEGORY = 15;//20070413 32 | // N-ary relations (arity = N, so any arity restricted by max) 33 | public static final int PATTERN = 17;//reserverd //20070604 34 | public static final int RESERVED = 1000;//reserved so user-defined Id's started with 1001 //20070604 35 | 36 | // Not really types but useful Ids 37 | public static final int KEYWORD = 401; // - Id of the FEATURETYPE for all Keyword features 38 | public static final int KEYWORDFRAME = 402; // - Id of the FEATURETYPE for all Keyword Frame features 39 | public static final int NOTCONFIRMED = -2147483648; 40 | 41 | // Not really types but useful constants 42 | public static final int MAXPATTERNLENGTH = 8;//reserved 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/core/Item.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.core; 10 | 11 | public interface Item extends Comparable 12 | { 13 | int getId(); //get unique item id of the item 14 | String getName(); //get symbolic representation of the item 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/core/Relation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.core; 10 | 11 | public interface Relation extends CoreRelation { 12 | float getPosEvidence(); 13 | float getNegEvidence(); 14 | int getConfirmation(); 15 | float getConfirmedEvidence(); 16 | void assign(Relation r); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/core/RelevantItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.core; 10 | 11 | public interface RelevantItem extends Comparable 12 | { 13 | int getId(); 14 | int getRelevantId(); 15 | float getEvidence(); 16 | float getRelevance(); 17 | float getRelative(); 18 | int getConfirmation(); 19 | String getRelevantName(); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/inf/InfException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.inf; 10 | 11 | public class InfException extends Exception { 12 | static final long serialVersionUID = 1; 13 | public InfException(String message) { 14 | super(message); 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/inf/InfServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.inf; 10 | 11 | import java.util.Hashtable; 12 | 13 | import net.webstructor.mine.auth.StoreSchema; 14 | import net.webstructor.mine.store.SimpleMemoryStorage; 15 | import net.webstructor.mine.store.Storage; 16 | 17 | public class InfServer { 18 | 19 | static Hashtable m_instances = new Hashtable(); 20 | 21 | public static InfServer getInstance(String path) throws Exception { 22 | Object instance = m_instances.get(path); 23 | if (instance == null) { 24 | instance = new InfServer(path); 25 | m_instances.put(path,instance); 26 | } 27 | return (InfServer)instance; 28 | } 29 | 30 | Storage m_storage = null; 31 | 32 | InfServer(String path) throws Exception { 33 | m_storage = new SimpleMemoryStorage(); 34 | m_storage.startUp(path,new StoreSchema()); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/store/Schema.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.store; 10 | 11 | import net.webstructor.mine.core.CoreRelation; 12 | 13 | public interface Schema { 14 | public CoreRelation[] getRelations(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/store/StoreException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.store; 10 | 11 | public class StoreException extends Exception { 12 | static final long serialVersionUID = 1; 13 | public StoreException(String message) { 14 | super(message); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/util/ReadWriteLock.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.util; 10 | 11 | public class ReadWriteLock 12 | { 13 | private int readers; 14 | private boolean writer; 15 | private Object synchronizeObject; 16 | 17 | public ReadWriteLock(Object obj) 18 | { 19 | readers = 0; 20 | writer = false; 21 | synchronizeObject = obj; 22 | } 23 | 24 | public ReadWriteLock() 25 | { 26 | this( new Object() ); 27 | } 28 | 29 | public void readLock() throws InterruptedException 30 | { 31 | while( true ) 32 | { 33 | synchronized (synchronizeObject) 34 | { 35 | if( !writer ) // no writer 36 | { 37 | readers++; 38 | break; 39 | } 40 | synchronizeObject.wait(); 41 | } 42 | } 43 | } 44 | 45 | public void readUnlock() 46 | { 47 | synchronized (synchronizeObject) 48 | { 49 | readers--; 50 | if ( readers == 0 ) 51 | { 52 | synchronizeObject.notifyAll(); 53 | } 54 | } 55 | } 56 | 57 | 58 | public void writeLock() throws InterruptedException 59 | { 60 | while( true ) 61 | { 62 | synchronized (synchronizeObject) 63 | { 64 | if( !writer && (readers == 0 )) // no writer or readers 65 | { 66 | writer = true; 67 | break; 68 | } 69 | synchronizeObject.wait(); 70 | } 71 | } 72 | } 73 | 74 | public void writeUnlock() 75 | { 76 | synchronized (synchronizeObject) 77 | { 78 | writer = false; 79 | synchronizeObject.notifyAll(); 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/mine/util/StringContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2008, Anton Kolonin, 3 | * All rights reserved. 4 | * 5 | * This software is proprietary information belonging to Anton Kolonin. 6 | * You shall not disclose this and shall not use it in any way 7 | * without of written permission granted by Anton Kolonin. 8 | */ 9 | package net.webstructor.mine.util; 10 | 11 | public class StringContext { 12 | public String m_httpLineBreak; 13 | public String m_cmdDelimeters; 14 | public String m_itemDelimeters; 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/nlp/GrammarParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.nlp; 25 | 26 | import java.util.Map; 27 | 28 | import net.webstructor.al.Seq; 29 | import net.webstructor.al.Set; 30 | 31 | public interface GrammarParser { 32 | Set parse(Seq tokens,Map params); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/nlp/NgramAllParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.nlp; 25 | 26 | import java.util.Map; 27 | 28 | import net.webstructor.al.Parser; 29 | import net.webstructor.al.Seq; 30 | import net.webstructor.al.Set; 31 | import net.webstructor.cat.StringUtil; 32 | 33 | public class NgramAllParser implements GrammarParser { 34 | @Override 35 | public 36 | Set parse(Seq tokens,Map params) { 37 | int distance = StringUtil.toIntOrDefault(params.get("distance"),10,1); 38 | Set grams = Parser.grams(tokens,distance); 39 | return grams; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/nlp/lg/Disjunct.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2020-2021 by Vignav Ramesh and Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | 25 | package net.webstructor.nlp.lg; 26 | 27 | import java.util.ArrayList; 28 | 29 | public class Disjunct { 30 | private ArrayList connectors; 31 | private double cost; 32 | 33 | public Disjunct(ArrayList connectors, double cost) { 34 | this.connectors = connectors; 35 | this.cost = cost; 36 | } 37 | 38 | public Disjunct() { 39 | connectors = new ArrayList(); 40 | cost = 0; 41 | } 42 | 43 | public void addConnector(String s) { 44 | connectors.add(s); 45 | } 46 | 47 | public ArrayList getConnectors() { return connectors; } 48 | 49 | public double getCost() { return cost; } 50 | 51 | @Override 52 | public String toString() { 53 | return connectors.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/nlp/lg/Link.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2021-2021 by Eugene Bochkov, Vignav Ramesh and Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | 25 | package net.webstructor.nlp.lg; 26 | 27 | 28 | public class Link { 29 | 30 | public int w1Index = 0; 31 | public int w2Index = 0; 32 | 33 | public Link(int wi1, int wi2) { 34 | w1Index=wi1; 35 | w2Index=wi2; 36 | } 37 | 38 | @Override 39 | public boolean equals(Object me) { 40 | Link link = (Link)me; 41 | if((this.w1Index==link.w1Index) && (this.w2Index==link.w2Index)) 42 | return true; 43 | else 44 | return false; 45 | } 46 | 47 | @Override 48 | public int hashCode() { 49 | return (this.w1Index<<16) | (this.w2Index); 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | return w1Index+"-"+w2Index; 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/nlp/lg/Sentence.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2021-2021 by Eugene Bochkov, Vignav Ramesh and Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | 25 | package net.webstructor.nlp.lg; 26 | 27 | import java.util.ArrayList; 28 | 29 | public class Sentence { 30 | 31 | public ArrayList words = new ArrayList(); 32 | public boolean valid = false; 33 | 34 | public int length() { 35 | return words.size(); 36 | } 37 | 38 | public String toString() { 39 | String str=""; 40 | for(int wordIndex=0; wordIndex getGroupPeerIds(String user_id); 30 | public Set getGroupIds(String user_id); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/net/webstructor/peer/Intenter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * 4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents® 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in all 14 | * copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | * SOFTWARE. 23 | */ 24 | package net.webstructor.peer; 25 | 26 | import net.webstructor.core.Named; 27 | 28 | //intent = template + help + action 29 | public interface Intenter extends Named { 30 | abstract boolean handleIntent(final Session session); 31 | }; 32 | 33 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Pre-requisite: 4 | 5 | # 1. Make sure the current folder contains Aigents.jar built 6 | # 2. Make sure the current folder contains the following lexicon files (may be downloaded from http://aigents.com/download/latest/) 7 | # lexicon_english.txt 8 | # lexicon_russian.txt 9 | # 3. Serve Web server at domain localtest.com: 10 | # 3.1. Edit hosts file, adding the line with "127.0.0.1 localtest.com" 11 | # Mac: /private/etc/hosts 12 | # Linux: /etc/hosts 13 | # Windows: c:\WINDOWS\system32\drivers\etc\hosts 14 | # 3.2. Go to folder "html" under this folder 15 | # 3.3. Start Web server 16 | # Python 2: 17 | # sudo python -m SimpleHTTPServer 80 18 | # Python 3: 19 | # sudo python -m http.server 80 20 | 21 | # Test run: 22 | 23 | # Cleanup data 24 | rm -rf *log.txt www is-instances is-text test*.txt 25 | 26 | # Run Aigents Server 27 | java -Dsun.zip.disableMemoryMapping=true -cp Aigents.jar:lib/* net.webstructor.agent.Farm store path "''", cookie domain localtest.com, console off & 28 | sleep 5 29 | echo Aigents server started. 30 | 31 | # Run Tests 32 | php -d include_path=./php/agent/ -f ./php/agent/agent_test.php 33 | 34 | # Kill Aigents server 35 | kill -9 $(ps -A -o pid,args | grep java | grep 'net.webstructor.agent.Farm' | awk '{print $1}') 36 | --------------------------------------------------------------------------------