1
1
"""
2
- characters(text::String)
2
+ characters(text::String)::Int
3
3
4
4
Returns the number of characters in `text`.
5
5
"""
@@ -8,7 +8,7 @@ function characters(text::String)::Int
8
8
end
9
9
10
10
"""
11
- characters_per_word(text::String)
11
+ characters_per_word(text::String)::Number
12
12
13
13
Returns the number of characters per word or the average word length in `text`.
14
14
"""
@@ -17,7 +17,7 @@ function characters_per_word(text::String)::Number
17
17
end
18
18
19
19
"""
20
- sentences(text::String)
20
+ sentences(text::String)::Int
21
21
22
22
Returns the number of sentences in `text`.
23
23
"""
@@ -26,7 +26,7 @@ function sentences(text::String)::Int
26
26
end
27
27
28
28
"""
29
- sentences_per_paragraph(text::String)
29
+ sentences_per_paragraph(text::String)::Number
30
30
31
31
Returns the number of sentences per paragraph or the average paragraph length in `text`.
32
32
"""
@@ -35,7 +35,7 @@ function sentences_per_paragraph(text::String)::Number
35
35
end
36
36
37
37
"""
38
- syllables(text::String)
38
+ syllables(text::String)::Int
39
39
40
40
Returns the number of syllables in `text`.
41
41
"""
@@ -59,7 +59,7 @@ function syllables(text::String)::Int
59
59
end
60
60
61
61
"""
62
- syllables_per_word(text::String)
62
+ syllables_per_word(text::String)::Number
63
63
64
64
Returns the number of syllables per word or the average word length in `text`.
65
65
"""
@@ -68,7 +68,7 @@ function syllables_per_word(text::String)::Number
68
68
end
69
69
70
70
"""
71
- words(text::String)
71
+ words(text::String)::Int
72
72
73
73
Returns the number of words in `text`.
74
74
"""
@@ -77,7 +77,7 @@ function words(text::String)::Int
77
77
end
78
78
79
79
"""
80
- words_per_sentence(text::String)
80
+ words_per_sentence(text::String)::Number
81
81
82
82
Returns the number of words per sentence or the sentence length in `text`.
83
83
"""
@@ -86,7 +86,7 @@ function words_per_sentence(text::String)::Number
86
86
end
87
87
88
88
"""
89
- lines(text::String)
89
+ lines(text::String)::Int
90
90
91
91
Returns the number of lines `text`.
92
92
"""
@@ -95,7 +95,7 @@ function lines(text::String)::Int
95
95
end
96
96
97
97
"""
98
- paragraphs(text::String)
98
+ paragraphs(text::String)::Int
99
99
100
100
Returns the number of paragraphs in `text`.
101
101
"""
0 commit comments