Skip to content

Commit 59da1f0

Browse files
authored
Updated README for generalized SMOG
1 parent 1755684 commit 59da1f0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@ print(s.score)
188188
print(s.grade_level)
189189
```
190190

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+
191207
### SPACHE
192208

193209
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

Comments
 (0)