Fix minor English grammar errors, mostly "a" versus "an".
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 14:57:24 +0000 (07:57 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 15:02:40 +0000 (08:02 -0700)
I spotted one of these and then found the rest via "grep".

24 files changed:
doc/data-io.texi
doc/dev/portable-file-format.texi
doc/matrices.texi
doc/statistics.texi
doc/variables.texi
perl-module/lib/PSPP.pm.in
src/data/casewindow.c
src/data/identifier2.c
src/data/missing-values.c
src/data/por-file-reader.c
src/data/sys-file-reader.c
src/language/lexer/lexer.c
src/libpspp/abt.c
src/libpspp/bt.c
src/libpspp/encoding-guesser.c
src/libpspp/heap.c
src/libpspp/heap.h
src/libpspp/hmap.c
src/libpspp/line-reader.c
src/libpspp/ll.h
src/output/table.c
src/ui/gui/find-dialog.c
tests/language/commands/frequencies.at
utilities/pspp-dump-sav.c

index a325dde38588859791cb1422ebf3b627cee7e041..23cc7e51ae24fba00dca17b10c03f63daf459b4d 100644 (file)
@@ -650,7 +650,7 @@ either convention on any kind of system, regardless of ENDS.
 In IMAGE mode, the data file is treated as a series of fixed-length
 binary records.  LRECL should be used to specify the record length in
 bytes, with a default of 1024.  On input, it is an error if an IMAGE
-file's length is not a integer multiple of the record length.  On
+file's length is not an integer multiple of the record length.  On
 output, each record is padded with spaces or truncated, if necessary,
 to make it exactly the correct length.
 
index e111d8f8972150de9a89dc8ca79d5adbcbdca5c8..0a1ed8dff7b0c5d96cf6a68486849fdabfc29cec 100644 (file)
@@ -147,7 +147,7 @@ A forward slash (@samp{/}).
 Integer fields take a form identical to floating-point fields, but they
 may not contain a fraction.
 
-String fields take the form of a integer field having value @var{n},
+String fields take the form of an integer field having value @var{n},
 followed by exactly @var{n} characters, which are the string content.
 
 @node Portable File Header
index f366e5fc79f53e69d5508856be2472e6eaf06a97..4bd86f454535255f396e774763d0aca618d95f54 100644 (file)
@@ -1614,7 +1614,7 @@ equivalent to @code{@{A(1,1)*B, A(1,2)*B; A(2,1)*B, A(2,2)*B@}}.
 @end deffn
 
 @deffn {Matrix Function} RANK (@var{M})
-Returns the rank of matrix @var{M}, a integer scalar whose value is
+Returns the rank of matrix @var{M}, an integer scalar whose value is
 the dimension of the vector space spanned by its columns or,
 equivalently, by its rows.
 
index 97a04a4ea0a3768db5ac755d230798a855ef2443..8e4e6f843cc78bc18fdce83873e8d02a551ed122 100644 (file)
@@ -284,7 +284,7 @@ The @subcmd{ORDER} subcommand is accepted but ignored.
 
 @ref{frequencies:ex} runs a frequency analysis on the @exvar{sex}
 and @exvar{occupation} variables from the @file{personnel.sav} file.
-This is useful to get an general idea of the way in which these nominal
+This is useful to get a general idea of the way in which these nominal
 variables are distributed.
 
 @float Example, frequencies:ex
@@ -2786,10 +2786,10 @@ values.
 If more than two distinct, non-missing values for a variable
 under test are encountered then an error occurs.
 
-If the test proportion is equal to 0.5, then a two tailed test is
-reported.   For any other test proportion, a one tailed test is
+If the test proportion is equal to 0.5, then a two-tailed test is
+reported.   For any other test proportion, a one-tailed test is
 reported.
-For one tailed tests, if the test proportion is less than
+For one-tailed tests, if the test proportion is less than
 or equal to the observed proportion, then the significance of
 observing the observed proportion or more is reported.
 If the test proportion is more than the observed proportion, then the
@@ -2923,7 +2923,7 @@ unity indicates complete agreement.
      [ /KOLMOGOROV-SMIRNOV (@{NORMAL [@var{mu}, @var{sigma}], UNIFORM [@var{min}, @var{max}], POISSON [@var{lambda}], EXPONENTIAL [@var{scale}] @}) = @var{var_list} ]
 @end display
 
-The one sample Kolmogorov-Smirnov subcommand is used to test whether or not a dataset is
+The one-sample Kolmogorov-Smirnov subcommand is used to test whether or not a dataset is
 drawn from a particular distribution.  Four distributions are supported, @i{viz:}
 Normal, Uniform, Poisson and Exponential.
 
@@ -3209,7 +3209,7 @@ which you wish to test.
 In this mode, you must also use the @subcmd{/VARIABLES} subcommand to
 tell @pspp{} which variables you wish to test.
 
-@subsubsection Example - One Sample T-test
+@subsubsection Example - One-Sample T-test
 
 A researcher wishes to know whether the weight of persons in a population
 is different from the national average.
@@ -3228,12 +3228,12 @@ using the @cmd{SELECT} command.
 
 @float Example, one-sample-t:ex
 @psppsyntax {one-sample-t.sps}
-@caption {Running a one sample T-Test after excluding all non-positive values}
+@caption {Running a one-sample T-Test after excluding all non-positive values}
 @end float
 
 @float Screenshot, one-sample-t:scr
 @psppimage {one-sample-t}
-@caption {Using the One Sample T-Test dialog box to test @exvar{weight} for a mean of 76.8kg}
+@caption {Using the One-Sample T-Test dialog box to test @exvar{weight} for a mean of 76.8kg}
 @end float
 
 
@@ -3245,7 +3245,7 @@ from 76.8kg.
 
 @float Results, one-sample-t:res
 @psppoutput {one-sample-t}
-@caption {The results of a one sample T-test of @exvar{weight} using a test value of 76.8kg}
+@caption {The results of a one-sample T-test of @exvar{weight} using a test value of 76.8kg}
 @end float
 
 @node Independent Samples Mode
index c1b18edfa600c68923374bc2dd39ac2a76beaf9b..513d3a4755f7a3490778924e7fbd43461a293933 100644 (file)
@@ -571,7 +571,7 @@ one of the following roles for the variables that follow it:
 An input variable, such as an independent variable.
 
 @item TARGET
-An output variable, such as an dependent variable.
+An output variable, such as a dependent variable.
 
 @item BOTH
 A variable used for input and output.
index f3c3a08229a081178d4a5fc80b78597d4d2fcdf8..9d2789554c954a5a201174bf30b3e5e6285ab813 100644 (file)
@@ -505,7 +505,7 @@ must be in UTF-8 encoding.
 
 =head3 get_case_cnt ()
 
-Returns the number of cases in a open system file.  Some files
+Returns the number of cases in an open system file.  Some files
 do not store the number of cases.  In these instances undef
 will be returned.  Therefore, then programmer must check that the
 returned value is not undef before using it.
index 763ceb2c41e9f1bfc5f0d7ad954b7617c93fee90..9ce0ae95ccbae6183da4e84bc67148270cf35bec 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
-/* This casewindow implementation in terms of an class interface
+/* This casewindow implementation in terms of a class interface
    is undoubtedly a form of over-abstraction.  However, it works
    and the extra abstraction seems to be harmless. */
 
index 8b34bb214a9eae203344647627404a7fe1454e14..dfbaab4f179673abcd230d0cf5fd2f16b4e61ccb 100644 (file)
@@ -129,7 +129,7 @@ id_is_valid (const char *id, const char *dict_encoding, enum dict_class classes)
   return error_to_bool (id_is_valid__ (id, dict_encoding, classes));
 }
 
-/* Checks whether UTF-8 string ID is an plausible identifier.  Returns NULL if
+/* Checks whether UTF-8 string ID is a plausible identifier.  Returns NULL if
    it is, otherwise an error message that the caller must free().  */
 char * WARN_UNUSED_RESULT
 id_is_plausible__ (const char *id)
@@ -161,7 +161,7 @@ id_is_plausible__ (const char *id)
     {
       char ucname[16];
       return xasprintf (_("Character %s (in `%s') may not appear "
-                          "as the first character in a identifier."),
+                          "as the first character in an identifier."),
                         uc_name (uc, ucname), id);
     }
 
@@ -179,7 +179,7 @@ id_is_plausible__ (const char *id)
   return NULL;
 }
 
-/* Returns true if UTF-8 string ID is an plausible identifier, false
+/* Returns true if UTF-8 string ID is a plausible identifier, false
    otherwise. */
 bool
 id_is_plausible (const char *id)
index 44d0bf9ee67315148224715f3ae4f083019c3636..97facf49a8291a832a47b6181d12bf2d1250777c 100644 (file)
@@ -302,7 +302,7 @@ mv_has_range (const struct missing_values *mv)
 }
 
 /* Removes the numeric range from MV and stores it in *LOW and
-   *HIGH.  MV must contain a individual range (as determined by
+   *HIGH.  MV must contain an individual range (as determined by
    mv_has_range()). */
 void
 mv_pop_range (struct missing_values *mv, double *low, double *high)
@@ -314,7 +314,7 @@ mv_pop_range (struct missing_values *mv, double *low, double *high)
 }
 
 /* Returns the numeric range from MV  into *LOW and
-   *HIGH.  MV must contain a individual range (as determined by
+   *HIGH.  MV must contain an individual range (as determined by
    mv_has_range()). */
 void
 mv_get_range (const struct missing_values *mv, double *low, double *high)
index 50c4495ff8f11642a3b4f4c4ef5672e9334bfcb4..213ad115c3fe030aed56f76a7abc11a838260003 100644 (file)
@@ -125,7 +125,7 @@ error (struct pfm_reader *r, const char *msg, ...)
   longjmp (r->bail_out, 1);
 }
 
-/* Displays MSG as an warning for the current position in
+/* Displays MSG as a warning for the current position in
    portable file reader R. */
 static void
 warning (struct pfm_reader *r, const char *msg, ...)
index b0f60a00c28efa895fe48c0a4824f73efd900d83..692f90252b0c318bd5f3b970ad5cc236ca09995b 100644 (file)
@@ -3190,7 +3190,7 @@ text_get_token (struct text_record *text, struct substring delimiters,
   return ss_data (token);
 }
 
-/* Reads a integer value expressed in decimal, then a space, then a string that
+/* Reads an integer value expressed in decimal, then a space, then a string that
    consists of exactly as many bytes as specified by the integer, then a space,
    from TEXT.  Returns the string, null-terminated, as a subset of TEXT's
    buffer (so the caller should not free the string). */
index 5c1d72612a8585fe87a1131fb535f1030926e75d..3d65d59661aad2b866266768180c3ab4f05d208c 100644 (file)
@@ -1073,7 +1073,7 @@ lex_force_num_range_closed (struct lexer *lexer, const char *name,
 
   if (min > max)
     {
-      /* Weird, maybe a bug in the caller.  Just report that we needed an
+      /* Weird, maybe a bug in the caller.  Just report that we needed a
          number. */
       if (name)
         lex_error (lexer, _("Syntax error expecting number for %s."), name);
@@ -1166,7 +1166,7 @@ lex_force_num_range_co (struct lexer *lexer, const char *name,
 
   if (min >= max)
     {
-      /* Weird, maybe a bug in the caller.  Just report that we needed an
+      /* Weird, maybe a bug in the caller.  Just report that we needed a
          number. */
       if (name)
         lex_error (lexer, _("Syntax error expecting number for %s."), name);
@@ -1327,7 +1327,7 @@ lex_force_num_range_open (struct lexer *lexer, const char *name,
 
   if (min >= max)
     {
-      /* Weird, maybe a bug in the caller.  Just report that we needed an
+      /* Weird, maybe a bug in the caller.  Just report that we needed a
          number. */
       if (name)
         lex_error (lexer, _("Syntax error expecting number for %s."), name);
index ae746183021203605efa169e6989c7cc05844ec3..42d21eefc6d9759c8d47b69feea80d71627ea525 100644 (file)
@@ -394,7 +394,7 @@ abt_changed (struct abt *abt, struct abt_node *p)
 }
 
 /* ABT nodes may be moved around in memory as necessary, e.g. as
-   the result of an realloc operation on a block that contains a
+   the result of a realloc operation on a block that contains a
    node.  Once this is done, call this function passing node P
    that was moved and its ABT before attempting any other
    operation on ABT.
index 4178d1475af769810a3f193d3af3d1afb5c48797..e6eaba7efd4648ad6db85a518fea90d7d12cca0c 100644 (file)
@@ -399,7 +399,7 @@ bt_changed (struct bt *bt, struct bt_node *p)
  }
 
 /* BT nodes may be moved around in memory as necessary, e.g. as
-   the result of an realloc operation on a block that contains a
+   the result of a realloc operation on a block that contains a
    node.  Once this is done, call this function passing node P
    that was moved and its BT before attempting any other
    operation on BT.
index 2f3438ff811ad954359261686871cd061db7bc48..20c4321a6e4187c4b55c46958d7f0521693cdd9b 100644 (file)
@@ -231,7 +231,7 @@ is_utf32be_bom (const uint8_t *data, size_t n)
    UTF-8 cannot be distinguished from other ASCII-based encodings until a
    non-ASCII text character is encountered.  If ENCODING specifies
    autodetection and this function returns "ASCII", then the client should
-   process the input until it encounters an non-ASCII character (as returned by
+   process the input until it encounters a non-ASCII character (as returned by
    encoding_guess_is_ascii_text()) and then use encoding_guess_tail_encoding()
    to make a final encoding guess.  See encoding-guesser.h for details.
 
index c825704ea9fc80efbd278dd44bb8f3013b216d51..beb6f219338140a35ee141d7cd876aa5f6f47d2e 100644 (file)
@@ -109,7 +109,7 @@ heap_count (const struct heap *h)
 }
 
 /* Heap nodes may be moved around in memory as necessary, e.g. as
-   the result of an realloc operation on a block that contains a
+   the result of a realloc operation on a block that contains a
    heap node.  Once this is done, call this function passing the
    NODE that was moved and its heap H before attempting any other
    operation on H. */
index c24c763277d53fde92c03f3e8360fc90e509f61d..c121e6c23a5631af9de3ee4ca2a1ed4cb756e869 100644 (file)
@@ -25,7 +25,7 @@
 
         - Delete any node in the heap: O(lg N).
 
-        - Change value of an node: O(lg N) in general; O(1) in
+        - Change value of a node: O(lg N) in general; O(1) in
           the typically common case where the node does not
           change its position relative to other nodes.
 
index f3cbf23a6161ccade1ce5dc879d44b9b5a65cf6e..e599389abe0b6c755107f508d351a953e1f9d153 100644 (file)
@@ -156,7 +156,7 @@ hmap_changed (struct hmap *map, struct hmap_node *node, size_t new_hash)
 }
 
 /* Hash map nodes may be moved around in memory as necessary,
-   e.g. as the result of an realloc operation on a block that
+   e.g. as the result of a realloc operation on a block that
    contains a node.  Once this is done, call this function
    passing NODE that was moved, its former location in memory
    OLD, and its hash map MAP before attempting any other
index c7d024b44a45706e925e2d45743c6e831f6beb9b..a3532c37fa11e0d33c43052b9a613d46441ad793 100644 (file)
@@ -323,7 +323,7 @@ line_reader_eof (const struct line_reader *r)
   return r->eof && !r->length;
 }
 
-/* Returns an nonzero errno value if an error has been encountered reading
+/* Returns a nonzero errno value if an error has been encountered reading
    R, zero otherwise. */
 int
 line_reader_error (const struct line_reader *r)
index 9e6e35f04ad72ee4af7264883cf080bc49359ad0..2484513027bfa88a96f85908267ff731b45fa049 100644 (file)
@@ -244,7 +244,7 @@ struct ll *ll_find_partition (const struct ll *r0, const struct ll *r1,
              DATA != NULL;                                      \
              DATA = ll_prev__ (DATA, STRUCT, MEMBER, LIST))
 
-/* Continues a iteration of LIST, starting from the object
+/* Continues an iteration of LIST, starting from the object
    currently in DATA and continuing, in forward or reverse order,
    through the remainder of the list, assuming that each `struct
    ll' in LIST is embedded as the given MEMBER name in data type
@@ -281,7 +281,7 @@ struct ll *ll_find_partition (const struct ll *r0, const struct ll *r1,
               : 0);                                                     \
              DATA = PREV)
 
-/* Continues a iteration of LIST, in forward or reverse order,
+/* Continues an iteration of LIST, in forward or reverse order,
    starting from the object currently in DATA and continuing
    forward through the remainder of the list, assuming that each
    `struct ll' in LIST is embedded as the given MEMBER name in
index 97a2793c55ea728c2cbe72cb6705469c8cf34f1c..cb6caf929a8aef804269c5c4243fc44f028f4f98 100644 (file)
@@ -40,7 +40,7 @@
 #define V TABLE_VERT
 
 /* Increases TABLE's reference count, indicating that it has an additional
-   owner.  An table that is shared among multiple owners must not be
+   owner.  A table that is shared among multiple owners must not be
    modified. */
 struct table *
 table_ref (const struct table *table_)
index 3562885a831f3e797ae7634f98d1ef165b728579..d9d3a5f651571d96d3acc281532794674d6c30f3 100644 (file)
@@ -343,7 +343,7 @@ minus1 (casenumber current, struct datasheet *data)
   return -1;
 }
 
-/* An type to facilitate iterating through casenumbers */
+/* A type to facilitate iterating through casenumbers */
 struct casenum_iterator
 {
   /* returns the first case to access */
index 473d1af677a3b26253bbe7918f943811284eb005..00f1d539974d3d4b502fc341a0fc99c0eab17985 100644 (file)
@@ -205,7 +205,7 @@ frequencies.sps:17: warning: FREQUENCIES: Suppressed 1 additional warning about
 AT_CLEANUP
 
 # Tests for a bug where pspp would crash if two FREQUENCIES commands
-# existed in a input file.
+# existed in an input file.
 AT_SETUP([FREQUENCIES two runs crash])
 AT_DATA([frequencies.sps],
   [data list free /v1 v2.
index 7c261a93bace3d6048c8b89ac0d163aa3f2c38de..cb8d804134e4099165cf9c5258fdff5197957590 100644 (file)
@@ -1485,7 +1485,7 @@ text_match (struct text_record *text, int c)
     return false;
 }
 
-/* Reads a integer value expressed in decimal, then a space, then a string that
+/* Reads an integer value expressed in decimal, then a space, then a string that
    consists of exactly as many bytes as specified by the integer, then a space,
    from TEXT.  Returns the string, null-terminated, as a subset of TEXT's
    buffer (so the caller should not free the string). */