You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,22 @@ print(s.score)
188
188
print(s.grade_level)
189
189
```
190
190
191
+
The original SMOG formula uses a sample of 30 sentences from the original text. However, the formula can be generalized to any number of sentences. You can use the generalized formula by passing the `all_sentences=True` argument to `smog()`
192
+
193
+
**_call:_**
194
+
195
+
```python
196
+
r.smog(all_sentences=True)
197
+
```
198
+
199
+
**_example:_**
200
+
201
+
```python
202
+
s = r.smog(all_sentences=True)
203
+
print(s.score)
204
+
print(s.grade_level)
205
+
```
206
+
191
207
### SPACHE
192
208
193
209
The Spache Readability Formula is used for Primary-Grade Reading Materials, published in 1953 in The Elementary School Journal. The Spache Formula is best used to calculate the difficulty of text that falls at the 3rd grade level or below.
0 commit comments