{"action":"opened","issue":{"url":"https://api.github.com/repos/wooorm/franc/issues/21","labels_url":"https://api.github.com/repos/wooorm/franc/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/wooorm/franc/issues/21/comments","events_url":"https://api.github.com/repos/wooorm/franc/issues/21/events","html_url":"https://github.com/wooorm/franc/issues/21","id":94453733,"number":21,"title":"English and Chinese mixed text results in invalid scottish match with 100% probability","user":{"login":"tommedema","id":331833,"avatar_url":"https://avatars.githubusercontent.com/u/331833?v=3","gravatar_id":"","url":"https://api.github.com/users/tommedema","html_url":"https://github.com/tommedema","followers_url":"https://api.github.com/users/tommedema/followers","following_url":"https://api.github.com/users/tommedema/following{/other_user}","gists_url":"https://api.github.com/users/tommedema/gists{/gist_id}","starred_url":"https://api.github.com/users/tommedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommedema/subscriptions","organizations_url":"https://api.github.com/users/tommedema/orgs","repos_url":"https://api.github.com/users/tommedema/repos","events_url":"https://api.github.com/users/tommedema/events{/privacy}","received_events_url":"https://api.github.com/users/tommedema/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-11T08:43:03Z","updated_at":"2015-07-11T08:43:03Z","closed_at":null,"body":"Run the following snippet:\r\n\r\n\t\tvar\r\n\t\t\ttext\t= 'That man is the richest whose pleasure are the cheapest. 能处处寻求快乐的人才是最富有的人。— 梭罗',\r\n\t\t\tlangs\t= franc.all(text);\r\n\r\n\t\tconsole.log(langs);\r\n\r\nThe result is:\r\n\r\n\t\t[ [ 'sco', 1 ],\r\n\t\t  [ 'eng', 0.9541225122770742 ],\r\n\t\t  [ 'src', 0.7208581028689585 ],\r\n\t\t  [ 'rmn', 0.7191780821917808 ],\r\n\t\t  [ 'nds', 0.7121995347635048 ],\r\n\t\t  [ 'ron', 0.6665805117601448 ],\r\n\t\t  [ 'hat', 0.665158955802533 ],\r\n\t\t  [ 'ita', 0.6585681054536056 ],\r\n\t\t  [ 'als', 0.6544326699405532 ],\r\n\t\t  [ 'fra', 0.6509433962264151 ],\r\n\t\t  [ 'yao', 0.6367278366502973 ],\r\n\t\t  [ 'ayr', 0.627681571465495 ],\r\n\t\t  [ 'por', 0.6112690617730681 ],\r\n\t\t  [ 'afr', 0.608942879296976 ],\r\n\t\t  [ 'est', 0.6075213233393641 ],\r\n\t\t  [ 'tzm', 0.6062289997415353 ],\r\n\t\t  [ 'deu', 0.6039028172654433 ],\r\n\t\t  [ 'bug', 0.6032566554665288 ],\r\n\t\t  [ 'glg', 0.6000258464719566 ],\r\n\t\t  [ 'nld', 0.5965365727578186 ],\r\n\t\t  [ 'bin', 0.595890410958904 ],\r\n\t\t  [ 'pam', 0.5922719048849832 ],\r\n\t\t  [ 'ace', 0.5916257430860687 ],\r\n\t\t  [ 'nso', 0.586585681054536 ],\r\n\t\t  [ 'mad', 0.5864564486947532 ],\r\n\t\t  [ 'nhn', 0.5861979839751874 ],\r\n\t\t  [ 'sna', 0.5823210131817007 ],\r\n\t\t  [ 'nno', 0.5753424657534247 ],\r\n\t\t  [ 'run', 0.5721116567588524 ],\r\n\t\t  [ 'cat', 0.5708193331610235 ],\r\n\t\t  [ 'epo', 0.5692685448436288 ],\r\n\t\t  [ 'ban', 0.569139312483846 ],\r\n\t\t  [ 'min', 0.5682346859653657 ],\r\n\t\t  [ 'snn', 0.5650038769707935 ],\r\n\t\t  [ 'tiv', 0.5580253295425175 ],\r\n\t\t  [ 'kin', 0.5569914706642543 ],\r\n\t\t  [ 'tpi', 0.5568622383044715 ],\r\n\t\t  [ 'tgl', 0.555052985267511 ],\r\n\t\t  [ 'spa', 0.5547945205479452 ],\r\n\t\t  [ 'gax', 0.553889894029465 ],\r\n\t\t  [ 'quz', 0.5494959937968467 ],\r\n\t\t  [ 'bci', 0.5478159731196692 ],\r\n\t\t  [ 'war', 0.546911346601189 ],\r\n\t\t  [ 'ibo', 0.5448436288446628 ],\r\n\t\t  [ 'quy', 0.5403204962522616 ],\r\n\t\t  [ 'jav', 0.5383820108555182 ],\r\n\t\t  [ 'sot', 0.5377358490566038 ],\r\n\t\t  [ 'tsn', 0.5373481519772552 ],\r\n\t\t  [ 'snk', 0.5356681313000775 ],\r\n\t\t  [ 'qug', 0.5339881106229 ],\r\n\t\t  [ 'dip', 0.5324373223055052 ],\r\n\t\t  [ 'dan', 0.5317911605065908 ],\r\n\t\t  [ 'uig', 0.5306280692685448 ],\r\n\t\t  [ 'bcl', 0.5273972602739726 ],\r\n\t\t  [ 'ckb', 0.5252003101576634 ],\r\n\t\t  [ 'hil', 0.5226156629620057 ],\r\n\t\t  [ 'ilo', 0.5213233393641767 ],\r\n\t\t  [ 'ndo', 0.5201602481261307 ],\r\n\t\t  [ 'nya', 0.5160248126130783 ],\r\n\t\t  [ 'tur', 0.5104678211424141 ],\r\n\t\t  [ 'plt', 0.5089170328250194 ],\r\n\t\t  [ 'ceb', 0.5064616179891445 ],\r\n\t\t  [ 'aka', 0.5054277591108813 ],\r\n\t\t  [ 'nob', 0.5045231325924011 ],\r\n\t\t  [ 'ibb', 0.5036185060739209 ],\r\n\t\t  [ 'emk', 0.5001292323597829 ],\r\n\t\t  [ 'ind', 0.4957353321271647 ],\r\n\t\t  [ 'sun', 0.4927629878521582 ],\r\n\t\t  [ 'tem', 0.4919875936934608 ],\r\n\t\t  [ 'ada', 0.4919875936934608 ],\r\n\t\t  [ 'mos', 0.488239855259757 ],\r\n\t\t  [ 'kde', 0.488239855259757 ],\r\n\t\t  [ 'hau', 0.48216593434996124 ],\r\n\t\t  [ 'rmy', 0.4797105195140863 ],\r\n\t\t  [ 'hms', 0.47777203411734304 ],\r\n\t\t  [ 'fuc', 0.4771258723184285 ],\r\n\t\t  [ 'hun', 0.4768674075988627 ],\r\n\t\t  [ 'ewe', 0.47389506332385634 ],\r\n\t\t  [ 'bam', 0.47118118376841556 ],\r\n\t\t  [ 'suk', 0.47066425432928405 ],\r\n\t\t  [ 'uzn', 0.4685965365727578 ],\r\n\t\t  [ 'tuk', 0.4609718273455673 ],\r\n\t\t  [ 'lav', 0.4608425949857844 ],\r\n\t\t  [ 'fin', 0.4605841302662187 ],\r\n\t\t  [ 'pol', 0.4604548979064358 ],\r\n\t\t  [ 'lit', 0.45993796846730417 ],\r\n\t\t  [ 'som', 0.45838718014990953 ],\r\n\t\t  [ 'xho', 0.4569656241922978 ],\r\n\t\t  [ 'azj', 0.45463944171620574 ],\r\n\t\t  [ 'vmw', 0.45076247092271904 ],\r\n\t\t  [ 'bem', 0.45024554148358753 ],\r\n\t\t  [ 'knc', 0.44339622641509435 ],\r\n\t\t  [ 'swh', 0.44313776169552854 ],\r\n\t\t  [ 'lin', 0.441457741018351 ],\r\n\t\t  [ 'vie', 0.44029464978030497 ],\r\n\t\t  [ 'ces', 0.44003618506073916 ],\r\n\t\t  [ 'toi', 0.43874386146291033 ],\r\n\t\t  [ 'zul', 0.4377100025846472 ],\r\n\t\t  [ 'slk', 0.43473765830964073 ],\r\n\t\t  [ 'ssw', 0.4340914965107263 ],\r\n\t\t  [ 'cjk', 0.4334453347118118 ],\r\n\t\t  [ 'gaa', 0.43254070819333157 ],\r\n\t\t  [ 'men', 0.43228224347376587 ],\r\n\t\t  [ 'srp', 0.4302145257172396 ],\r\n\t\t  [ 'kbp', 0.4256913931248385 ],\r\n\t\t  [ 'bos', 0.42401137244766085 ],\r\n\t\t  [ 'lua', 0.4210390281726545 ],\r\n\t\t  [ 'lun', 0.41664512794003616 ],\r\n\t\t  [ 'hrv', 0.41250969242698377 ],\r\n\t\t  [ 'tso', 0.40759886275523394 ],\r\n\t\t  [ 'sag', 0.4073403980356681 ],\r\n\t\t  [ 'slv', 0.40462651848022746 ],\r\n\t\t  [ 'nyn', 0.40372189196174724 ],\r\n\t\t  [ 'wol', 0.4025588007237012 ],\r\n\t\t  [ 'fon', 0.4011372447660895 ],\r\n\t\t  [ 'yor', 0.39622641509433965 ],\r\n\t\t  [ 'swe', 0.3900232618247609 ],\r\n\t\t  [ 'kng', 0.38097699663995865 ],\r\n\t\t  [ 'umb', 0.37645386404755754 ],\r\n\t\t  [ 'lug', 0.36495218402688034 ],\r\n\t\t  [ 'kmb', 0.3509950891703283 ] ]\r\n\r\nObviously, this is invalid. Also, there is not a single occurance of `cmn` in the results list."}}