function value = flesch_kincaid_level ( sentences, words, syllables )

%*****************************************************************************80
%
%% flesch_kincaid_level() returns the Flesch-Kincaid grade level for text.
%
%  Discussion:
%
%    The function provides an estimate of the reading grade level needed
%    to comprehend a given text.
%
%   "I embrace with great satisfaction the opportunity which now presents
%    itself of congratulating you on the present favorable prospects
%    of our public affairs."  - George Washington
%
%    1 sentence, 23 words, 43 syllables: Flesch-Kincaid score of 16.

%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 June 2023
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Ben Blatt,
%    Nabokov's Favorite Word is Mauve, 2017.
%    ISBN: 978-1-5011-0539-5
%    LC: PN165.B55
%
%  Input:
%
%    real sentences, words, syllables: the total number of sentences,
%    words, and syllables in a text.
%
%  Output:
%
%    real value: the Flesch-Kincaid grade level for the text.
%
  value = 0.39 * ( words / sentences ) + 11.8 * ( syllables / words ) - 15.59;

  return
end
