psychowl 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +212 -0
- data/exe/psychowl +106 -0
- data/ext/psychowl_native/core/data/LICENSE-whatlang +26 -0
- data/ext/psychowl_native/core/data/README.md +32 -0
- data/ext/psychowl_native/core/data/alphabets.tsv +16 -0
- data/ext/psychowl_native/core/data/languages.tsv +20 -0
- data/ext/psychowl_native/core/data/scripts.tsv +28 -0
- data/ext/psychowl_native/core/data/trigrams/ara.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/deu.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/eng.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/fra.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/hin.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/ind.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/ita.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/nld.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/pol.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/por.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/rus.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/spa.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/tur.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/ukr.txt +302 -0
- data/ext/psychowl_native/core/data/trigrams/vie.txt +302 -0
- data/lib/psychowl/active_model.rb +64 -0
- data/lib/psychowl/data_file.rb +14 -0
- data/lib/psychowl/detector.rb +123 -0
- data/lib/psychowl/engine.rb +23 -0
- data/lib/psychowl/info.rb +39 -0
- data/lib/psychowl/lang.rb +55 -0
- data/lib/psychowl/locale/en.yml +6 -0
- data/lib/psychowl/lookup.rb +25 -0
- data/lib/psychowl/native_speedup.rb +46 -0
- data/lib/psychowl/postgres.rb +35 -0
- data/lib/psychowl/railtie.rb +10 -0
- data/lib/psychowl/ruby_engine/segmentation.rb +84 -0
- data/lib/psychowl/ruby_engine/trigrams.rb +74 -0
- data/lib/psychowl/ruby_engine.rb +166 -0
- data/lib/psychowl/script.rb +39 -0
- data/lib/psychowl/segment.rb +24 -0
- data/lib/psychowl/tables.rb +55 -0
- data/lib/psychowl/text.rb +26 -0
- data/lib/psychowl/version.rb +5 -0
- data/lib/psychowl.rb +82 -0
- metadata +91 -0
metadata
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: psychowl
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Abdelkader Boudih
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Language and script detection with a Rust engine, precompiled for Linux,
|
|
13
|
+
macOS and FreeBSD, and an identical pure Ruby engine everywhere else. Mixed-language
|
|
14
|
+
segments, batch detection, an ActiveModel validator and a CLI.
|
|
15
|
+
email:
|
|
16
|
+
- terminale@gmail.com
|
|
17
|
+
executables:
|
|
18
|
+
- psychowl
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- CHANGELOG.md
|
|
23
|
+
- LICENSE.txt
|
|
24
|
+
- README.md
|
|
25
|
+
- exe/psychowl
|
|
26
|
+
- ext/psychowl_native/core/data/LICENSE-whatlang
|
|
27
|
+
- ext/psychowl_native/core/data/README.md
|
|
28
|
+
- ext/psychowl_native/core/data/alphabets.tsv
|
|
29
|
+
- ext/psychowl_native/core/data/languages.tsv
|
|
30
|
+
- ext/psychowl_native/core/data/scripts.tsv
|
|
31
|
+
- ext/psychowl_native/core/data/trigrams/ara.txt
|
|
32
|
+
- ext/psychowl_native/core/data/trigrams/deu.txt
|
|
33
|
+
- ext/psychowl_native/core/data/trigrams/eng.txt
|
|
34
|
+
- ext/psychowl_native/core/data/trigrams/fra.txt
|
|
35
|
+
- ext/psychowl_native/core/data/trigrams/hin.txt
|
|
36
|
+
- ext/psychowl_native/core/data/trigrams/ind.txt
|
|
37
|
+
- ext/psychowl_native/core/data/trigrams/ita.txt
|
|
38
|
+
- ext/psychowl_native/core/data/trigrams/nld.txt
|
|
39
|
+
- ext/psychowl_native/core/data/trigrams/pol.txt
|
|
40
|
+
- ext/psychowl_native/core/data/trigrams/por.txt
|
|
41
|
+
- ext/psychowl_native/core/data/trigrams/rus.txt
|
|
42
|
+
- ext/psychowl_native/core/data/trigrams/spa.txt
|
|
43
|
+
- ext/psychowl_native/core/data/trigrams/tur.txt
|
|
44
|
+
- ext/psychowl_native/core/data/trigrams/ukr.txt
|
|
45
|
+
- ext/psychowl_native/core/data/trigrams/vie.txt
|
|
46
|
+
- lib/psychowl.rb
|
|
47
|
+
- lib/psychowl/active_model.rb
|
|
48
|
+
- lib/psychowl/data_file.rb
|
|
49
|
+
- lib/psychowl/detector.rb
|
|
50
|
+
- lib/psychowl/engine.rb
|
|
51
|
+
- lib/psychowl/info.rb
|
|
52
|
+
- lib/psychowl/lang.rb
|
|
53
|
+
- lib/psychowl/locale/en.yml
|
|
54
|
+
- lib/psychowl/lookup.rb
|
|
55
|
+
- lib/psychowl/native_speedup.rb
|
|
56
|
+
- lib/psychowl/postgres.rb
|
|
57
|
+
- lib/psychowl/railtie.rb
|
|
58
|
+
- lib/psychowl/ruby_engine.rb
|
|
59
|
+
- lib/psychowl/ruby_engine/segmentation.rb
|
|
60
|
+
- lib/psychowl/ruby_engine/trigrams.rb
|
|
61
|
+
- lib/psychowl/script.rb
|
|
62
|
+
- lib/psychowl/segment.rb
|
|
63
|
+
- lib/psychowl/tables.rb
|
|
64
|
+
- lib/psychowl/text.rb
|
|
65
|
+
- lib/psychowl/version.rb
|
|
66
|
+
homepage: https://github.com/seuros/psychowl
|
|
67
|
+
licenses:
|
|
68
|
+
- MIT
|
|
69
|
+
metadata:
|
|
70
|
+
source_code_uri: https://github.com/seuros/psychowl
|
|
71
|
+
bug_tracker_uri: https://github.com/seuros/psychowl/issues
|
|
72
|
+
changelog_uri: https://github.com/seuros/psychowl/blob/master/CHANGELOG.md
|
|
73
|
+
rubygems_mfa_required: 'true'
|
|
74
|
+
rdoc_options: []
|
|
75
|
+
require_paths:
|
|
76
|
+
- lib
|
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '4.0'
|
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
|
+
requirements:
|
|
84
|
+
- - ">="
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: '0'
|
|
87
|
+
requirements: []
|
|
88
|
+
rubygems_version: 4.0.20
|
|
89
|
+
specification_version: 4
|
|
90
|
+
summary: Fast natural language and script detection. It knows what language you speak.
|
|
91
|
+
test_files: []
|