syllabify 1.0.0 → 1.0.1

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.
@@ -12,9 +12,9 @@ Transcription constraints
12
12
 
13
13
  Any phonemes represented in IPA by [digraphs](http://en.wikipedia.org/wiki/Digraph_\(orthography\)) (such as [affricates](http://en.wikipedia.org/wiki/Affricate_consonant), [doubly-articulated consonants](http://en.wikipedia.org/wiki/Doubly_articulated_consonant), and [diphthongs](http://en.wikipedia.org/wiki/Diphthong)) must be transcribed using a [tie](http://en.wikipedia.org/wiki/Tie_\(typography\)), otherwise there is no way to distinguish them from the phonemes of their individual components and syllabification will be incorrect in some cases.
14
14
 
15
- For example, in English transcriptions the [voiceless postalveolar affricate](http://en.wikipedia.org/wiki/Voiceless_postalveolar_affricate) is customarily transcribed without the tie. For the purposes of syllabification, however, this is problematic because in English /t͡ʃ/ is a legal onset but /tʃ/ is not. If the English voiceless postalveolar affricate were to be transcribed without the tie as /tʃ/ then it would have to be included in the inventory of onsets, but doing so would cause the phoneme sequence /t/ followed by /ʃ/ to also be interpreted as an onset—which it isn’t. Given this constraint on the inventory, without the tie transcriptions where /tʃ/ represents two different phonemes rather than one—such as in *nutshell* /nʌtʃɛl/—will be incorrectly syllabified as /nʌ.tʃɛl/ rather than /nʌt.ʃɛl/. Transcribing as /nʌt͡ʃɛl/, however, produces the correct syllabification. Similarly, without a tie it’s not possible to determine whether the diphthong /ɔɪ/ in *clawing* /klɔɪŋ/ is one or two separate phonemes.
15
+ For example, in English transcriptions the [voiceless postalveolar affricate](http://en.wikipedia.org/wiki/Voiceless_postalveolar_affricate) is customarily transcribed without the tie. For the purposes of syllabification, however, this is problematic because in English /t͡ʃ/ is a legal onset but /tʃ/ is not. If the English voiceless postalveolar affricate were to be transcribed without the tie as /tʃ/ then it would have to be included in the inventory of onsets, but doing so would cause the phoneme sequence /t/ followed by /ʃ/ to also be interpreted as an onset—which it isn’t. In this case, without the tie transcriptions where /tʃ/ represents two different phonemes rather than one—such as in *nutshell* /nʌtʃɛl/—will be incorrectly syllabified as /nʌ.tʃɛl/ rather than /nʌt.ʃɛl/. Similarly, without a tie it’s not possible to determine whether the diphthong /ɔɪ/ in *clawing* /klɔɪŋ/ is one or two separate phonemes.
16
16
 
17
- In other words, tie glyphs together if they represent the same phoneme. The only digraphs requiring ties in English are the voiced and voiceless postalveolar affricates consonants /t͡ʃ, d͡ʒ/ and the diphthongs /a͡ʊ, a͡ɪ, e͡ɪ, o͡ʊ, ɔ͡ɪ/.
17
+ In other words, tie glyphs together if they represent the same phoneme. The only digraphs requiring ties in English are the voiced and voiceless postalveolar affricates /t͡ʃ, d͡ʒ/ and the diphthongs /a͡ʊ, a͡ɪ, e͡ɪ, o͡ʊ, ɔ͡ɪ/.
18
18
 
19
19
  ### How to enter ties
20
20
 
@@ -35,6 +35,7 @@ nuclei:
35
35
  - ɔː
36
36
  - uː
37
37
  - ɑ
38
+ - ɒ
38
39
  - æ
39
40
  - ʌ
40
41
  - ə
@@ -90,7 +90,7 @@ module CodyRobbins
90
90
  end
91
91
 
92
92
  def phoneme_inventory
93
- HashWithIndifferentAccess.new(phoneme_inventory_yaml)
93
+ phoneme_inventory_yaml.with_indifferent_access
94
94
  end
95
95
 
96
96
  def phoneme_inventory_yaml
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'syllabify'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.summary = 'A Ruby port of the Penn Phonetics Toolkit (P2TK) syllabifier.'
5
5
  s.homepage = 'http://codyrobbins.com/software/syllabify'
6
6
  s.author = 'Cody Robbins'
metadata CHANGED
@@ -1,33 +1,43 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: syllabify
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 1
9
+ version: 1.0.1
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Cody Robbins
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2011-10-22 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2011-11-12 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: activesupport
16
- requirement: &70147390060300 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: *70147390060300
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  description:
26
33
  email: cody@codyrobbins.com
27
34
  executables: []
35
+
28
36
  extensions: []
37
+
29
38
  extra_rdoc_files: []
30
- files:
39
+
40
+ files:
31
41
  - .gitignore
32
42
  - .yardopts
33
43
  - LICENSE
@@ -37,37 +47,40 @@ files:
37
47
  - lib/cody_robbins/syllabify/syllable.rb
38
48
  - lib/syllabify.rb
39
49
  - syllabify.gemspec
50
+ has_rdoc: true
40
51
  homepage: http://codyrobbins.com/software/syllabify
41
52
  licenses: []
42
- post_install_message: ! '
43
53
 
54
+ post_install_message: |+
55
+
44
56
  -------------------------------------------------------------
45
-
46
57
  Follow me on Twitter! http://twitter.com/codyrobbins
47
-
48
58
  -------------------------------------------------------------
49
-
50
-
51
- '
59
+
52
60
  rdoc_options: []
53
- require_paths:
61
+
62
+ require_paths:
54
63
  - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
77
+ version: "0"
67
78
  requirements: []
79
+
68
80
  rubyforge_project:
69
- rubygems_version: 1.8.10
81
+ rubygems_version: 1.3.6
70
82
  signing_key:
71
83
  specification_version: 3
72
84
  summary: A Ruby port of the Penn Phonetics Toolkit (P2TK) syllabifier.
73
85
  test_files: []
86
+