Skip to content

Commit

Permalink
complete modals
Browse files Browse the repository at this point in the history
  • Loading branch information
cecoeco committed Apr 8, 2024
1 parent a499c6b commit 8491d77
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/frontend/src/components/ari.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function ARI(props) {
<X class="x" onClick={closeARIModal} />
<h1>Automated Readability Index</h1>
<p class="math">
ARI = 4.71 * (characters per word) + 0.5 * (words per sentence) -
ARI = 4.71 * characters per word + 0.5 * words per sentence -
21.43
</p>
<p class="apa-citation">
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/src/components/coleman-liau.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function CL(props) {
<div class="modal">
<X class="x" onClick={closeCLModal} />
<h1>Coleman-Liau Index</h1>
<p class="math">CLI = 0.0588 * L - 0.296 * S - 15.8</p>
<p class="math">CLI = 0.0588 * characters per 100 words - 0.296 * sentences per 100 words - 15.8</p>
<p class="apa-citation">
Coleman, M., & Liau, T. L. (1975). A computer readability formula
designed for machine scoring. <i>Journal of Applied Psychology</i>, 60(2),
Expand Down
6 changes: 4 additions & 2 deletions app/frontend/src/components/dale-chall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ function DC(props) {
<div class="modal-background" onClick={closeDCModal}>
<div class="modal">
<X class="x" onClick={closeDCModal} />
<h1>Dale-Chall</h1>
<p class="math"></p>
<h1>Dale-Chall Index</h1>
<p class="math">
DCI = 64 - 0.95 * percentage of difficult words - 0.69 * words per sentence
</p>
<p class="apa-citation">
Dale, E., & Chall, J. S. (1948). A Formula for Predicting
Readability. <i>Educational Research Bulletin</i>, 27(1), 11–28.
Expand Down
4 changes: 3 additions & 1 deletion app/frontend/src/components/fkgl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function FKGL(props) {
<div class="modal">
<X class="x" onClick={closeFKGLModal} />
<h1>Flesch-Kincaid Grade Level</h1>
<p class="math"></p>
<p class="math">
FKGL = 0.39 * words per sentence + 11.8 * syllables per word - 15.59
</p>
<p class="apa-citation">
Kincaid, J. P., Fishburne, Jr., Robert P., R., Richard L., C., &
Brad S. (1975). Derivation of New Readability Formulas (Automated
Expand Down
4 changes: 3 additions & 1 deletion app/frontend/src/components/fres.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function FRES(props) {
<div class="modal">
<X class="x" onClick={closeFRESModal} />
<h1>Fresch Reading Ease Score</h1>
<p class="math"></p>
<p class="math">
FRES = 206.835 - 1.015 * words per sentence - 84.6 * syllables per word
</p>
<p class="apa-citation">
Farr, J. N., Jenkins, J. J., & Paterson, D. G. (1951).
Simplification of Flesch Reading Ease Formula. <i>Journal of Applied
Expand Down
4 changes: 3 additions & 1 deletion app/frontend/src/components/gunning_fog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function GF(props) {
<div class="modal">
<X class="x" onClick={closeGFModal} />
<h1>Gunning Fog Index</h1>
<p class="math"></p>
<p class="math">
GFI = 0.4 * words per sentence + percentage of complex words
</p>
<p class="apa-citation">
Gunning, R. (1971). The Technique of Clear Writing. McGraw-Hill.
</p>
Expand Down
4 changes: 3 additions & 1 deletion app/frontend/src/components/smog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function SMOG(props) {
<div class="modal">
<X class="x" onClick={closeSMOGModal} />
<h1>Simple Measure of Gobbledygook (SMOG)</h1>
<p class="math"></p>
<p class="math">
SMOG Index = 1.0430 * sqrt(total_polysyllablic_words * (30 / total_sentences)) + 3.1291
</p>
<p class="apa-citation">
Mc Laughlin, G. H. (1969). SMOG Grading-a New Readability Formula.{" "}
<i>Journal of Reading</i>, 12(8), 639–646.
Expand Down
4 changes: 3 additions & 1 deletion app/frontend/src/components/spache.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function Spache(props) {
<div class="modal">
<X class="x" onClick={closeSpacheModal} />
<h1>Spache Index</h1>
<p class="math"></p>
<p class="math">
SI = 0.121 * words per sentence + 0.082 * percentage of difficult words + 0.659
</p>
<p class="apa-citation">
Spache, G. (1953). A New Readability Formula for Primary-Grade
Reading Materials. <i>The Elementary School Journal</i>, 53(7),
Expand Down

0 comments on commit 8491d77

Please sign in to comment.