Fix typos

Thanks to spell_check!

Change-Id: I354b9d1a6658ed0457d3c9df64cf0df74bb92d82
diff --git a/R/KorAPConnection.R b/R/KorAPConnection.R
index 13a3b39..be1853a 100644
--- a/R/KorAPConnection.R
+++ b/R/KorAPConnection.R
@@ -19,7 +19,7 @@
 #' @param apiVersion which version of KorAP's API you want to connect to.
 #' @param apiUrl URL of the KorAP web service.
 #' @param accessToken OAuth2 access token. To use authorization based on an access token
-#'   in subsequent queries, intialize your KorAP connection with
+#'   in subsequent queries, initialize your KorAP connection with
 #'   \code{kco <- new("KorAPConnection", accessToken="<access token>")}.
 #'   In order to make the API
 #'   token persistent for the currently used \code{KorAPUrl} (you can have one
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R
index 26393d3..d6137d1 100644
--- a/R/KorAPQuery.R
+++ b/R/KorAPQuery.R
@@ -1,6 +1,6 @@
 #' Class KorAPQuery
 #'
-#' \code{KorAPQuery} objetcs represent the current state of a query to a KorAP server.
+#' \code{KorAPQuery} objects represent the current state of a query to a KorAP server.
 #' New \code{KorAPQuery} objects are typically created by the \code{\link{corpusQuery}} method.
 #'
 #' @include KorAPConnection.R
@@ -91,13 +91,13 @@
 #' @param metadataOnly logical that determines whether queries should return only metadata without any snippets. This can also be useful to prevent access rewrites. Note that the default value is TRUE, unless the connection is authorized (currently not possible).
 #' @param ql string to choose the query language (see \href{https://github.com/KorAP/Kustvakt/wiki/Service:-Search-GET#user-content-parameters}{section on Query Parameters} in the Kustvakt-Wiki for possible values.
 #' @param fields (meta)data fields that will be fetched for every match.
-#' @param accessRewriteFatal abort if query or given vc had to be rewritten due to insufficent rights (not yet implemented).
+#' @param accessRewriteFatal abort if query or given vc had to be rewritten due to insufficient rights (not yet implemented).
 #' @param verbose print some info
 #' @param as.df return result as data frame instead of as S4 object?
-#' @param expand logical that deicdes if \code{query} and \code{vc} parameters are expanded to all of their combinations
+#' @param expand logical that decides if \code{query} and \code{vc} parameters are expanded to all of their combinations
 #' @return Depending on the \code{as.df} parameter, a table or a \code{\link{KorAPQuery}} object that, among other information, contains the total number of results in \code{@totalResults}. The resulting object can be used to fetch all query results (with \code{\link{fetchAll}}) or the next page of results (with \code{\link{fetchNext}}).
 #' A corresponding URL to be used within a web browser is contained in \code{@webUIRequestUrl}
-#' Please make sure to check \code{$collection$rewrites} to see if any unforseen access rewrites of the query's virtual corpus had to be performed.
+#' Please make sure to check \code{$collection$rewrites} to see if any unforeseen access rewrites of the query's virtual corpus had to be performed.
 #'
 #' @examples
 #' # Fetch metadata of every query hit for "Ameisenplage" and show a summary
@@ -344,7 +344,7 @@
 #'
 #' @param kco \code{\link{KorAPConnection}} object (obtained e.g. from \code{new("KorAPConnection")}
 #' @param query string that contains the corpus query. The query language depends on the \code{ql} parameter. Either \code{query} must be provided or \code{KorAPUrl}.
-#' @param conf.level confidence level of the returned confidence interval (passed throgh \code{\link{ci}}  to \code{\link{prop.test}}).
+#' @param conf.level confidence level of the returned confidence interval (passed through \code{\link{ci}}  to \code{\link{prop.test}}).
 #' @param as.alternatives LOGICAL that specifies if the query terms should be treated as alternatives. If \code{as.alternatives} is TRUE, the sum over all query hits, instead of the respective vc token sizes is used as total for the calculation of relative frequencies.
 #' @export
 setMethod("frequencyQuery", "KorAPConnection",
diff --git a/R/RKorAPClient.R b/R/RKorAPClient.R
index 67a35c1..92fc66e 100644
--- a/R/RKorAPClient.R
+++ b/R/RKorAPClient.R
@@ -1,6 +1,6 @@
 #' \code{RKorapClient} package
 #'
-#' R pakcage to access the \href{https://github.com/KorAP/}{KorAP} web service API.
+#' R package to access the \href{https://github.com/KorAP/}{KorAP} web service API.
 #'
 #' See the README.md on
 #' \href{https://github.com/KorAP/RKorAPClient/}{github}
diff --git a/R/ci.R b/R/ci.R
index d3b1102..64f7c0a 100644
--- a/R/ci.R
+++ b/R/ci.R
@@ -7,11 +7,11 @@
 #'
 #'
 #' @seealso
-#' \code{ci} is alread included in \code{\link{frequencyQuery}}
+#' \code{ci} is already included in \code{\link{frequencyQuery}}
 #'
 #' @param df table with columns for absolute and total frequencies.
 #' @param x  column with the observed absolute frequency.
-#' @param N  column with the total frequncies
+#' @param N  column with the total frequencies
 #' @param conf.level confidence level of the returned confidence interval. Must
 #'   be a single number between 0 and 1.
 #'
diff --git a/R/highcharter-helper.R b/R/highcharter-helper.R
index 46d3e8e..9e98114 100644
--- a/R/highcharter-helper.R
+++ b/R/highcharter-helper.R
@@ -7,7 +7,7 @@
 #' @export
 #'
 #' @param df data frame like the value of a \code{\link{frequencyQuery}}
-#' @param as.alternatives boolean decides whether queries should be treatet queries as mutually exclusive and exahustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).
+#' @param as.alternatives boolean decides whether queries should be treated as mutually exclusive and exhaustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).
 #' @param ylabel defaults to \% if \code{as.alternatives} is \code{true} and to "ipm" otherwise.
 #'
 #' @examples
diff --git a/Readme.md b/Readme.md
index 70a92f6..89037c7 100644
--- a/Readme.md
+++ b/Readme.md
@@ -4,9 +4,9 @@
 
 ## Description
 
-Simple R package to access the [web service API](https://github.com/KorAP/Kustvakt/wiki) of the [KorAP Corpus Analysis Platform](https://korap.ids-mannheim.de/) devloped at the [IDS Mannheim](http://ids-mannheim.de/)
+Simple R package to access the [web service API](https://github.com/KorAP/Kustvakt/wiki) of the [KorAP Corpus Analysis Platform](https://korap.ids-mannheim.de/) developed at the [IDS Mannheim](http://ids-mannheim.de/)
 
-**This packgage is in its early stages and not stable yet! In particular, please expect that, at this early stage, objects, functions, parameters as well as their names or identifiers will still change continuously without any notification. Use it on your own risk!**
+**This package is in its early stages and not stable yet! In particular, please expect that, at this early stage, objects, functions, parameters as well as their names or identifiers will still change continuously without any notification. Use it on your own risk!**
 
 ## Getting started
 
@@ -88,4 +88,4 @@
 
 ## References
 
-Kupietz, Marc / Margaretha, Eliza / Diewald, Nils / Lüngen, Harald / Fankhauser, Peter (2019): [What’s New in EuReCo? Interoperability, Comparable Corpora, Licensing](https://nbn-resolving.org/urn:nbn:de:bsz:mh39-90261). In: Bański, Piotr/Barbaresi, Adrien/Biber, Hanno/Breiteneder, Evelyn/Clematide, Simon/Kupietz, Marc/Lüngen, Harald/Iliadi, Caroline (Hrsg.): [*Proceedings of the Internation Corpus Linguistics Conference 2019 Workshop "Challenges in the Management of Large Corpora (CMLC-7)"*](https://ids-pub.bsz-bw.de/solrsearch/index/search/searchtype/collection/id/21038), 22nd of July Mannheim: Leibniz-Institut für Deutsche Sprache,33-39.
+Kupietz, Marc / Margaretha, Eliza / Diewald, Nils / Lüngen, Harald / Fankhauser, Peter (2019): [What’s New in EuReCo? Interoperability, Comparable Corpora, Licensing](https://nbn-resolving.org/urn:nbn:de:bsz:mh39-90261). In: Bański, Piotr/Barbaresi, Adrien/Biber, Hanno/Breiteneder, Evelyn/Clematide, Simon/Kupietz, Marc/Lüngen, Harald/Iliadi, Caroline (eds.): [*Proceedings of the International Corpus Linguistics Conference 2019 Workshop "Challenges in the Management of Large Corpora (CMLC-7)"*](https://ids-pub.bsz-bw.de/solrsearch/index/search/searchtype/collection/id/21038), 22nd of July Mannheim: Leibniz-Institut für Deutsche Sprache, 33-39.
diff --git a/man/KorAPConnection-class.Rd b/man/KorAPConnection-class.Rd
index 9f796f3..b660582 100644
--- a/man/KorAPConnection-class.Rd
+++ b/man/KorAPConnection-class.Rd
@@ -48,7 +48,7 @@
 \item{apiUrl}{URL of the KorAP web service.}
 
 \item{accessToken}{OAuth2 access token. To use authorization based on an access token
-in subsequent queries, intialize your KorAP connection with
+in subsequent queries, initialize your KorAP connection with
 \code{kco <- new("KorAPConnection", accessToken="<access token>")}.
 In order to make the API
 token persistent for the currently used \code{KorAPUrl} (you can have one
diff --git a/man/KorAPQuery-class.Rd b/man/KorAPQuery-class.Rd
index 262c10b..5ac8725 100644
--- a/man/KorAPQuery-class.Rd
+++ b/man/KorAPQuery-class.Rd
@@ -94,7 +94,7 @@
 
 \item{query}{string that contains the corpus query. The query language depends on the \code{ql} parameter. Either \code{query} must be provided or \code{KorAPUrl}.}
 
-\item{conf.level}{confidence level of the returned confidence interval (passed throgh \code{\link{ci}}  to \code{\link{prop.test}}).}
+\item{conf.level}{confidence level of the returned confidence interval (passed through \code{\link{ci}}  to \code{\link{prop.test}}).}
 
 \item{as.alternatives}{LOGICAL that specifies if the query terms should be treated as alternatives. If \code{as.alternatives} is TRUE, the sum over all query hits, instead of the respective vc token sizes is used as total for the calculation of relative frequencies.}
 
@@ -108,7 +108,7 @@
 The \code{kqo} input object with updated slots \code{collectedMatches}, \code{apiResponse}, \code{nextStartIndex}, \code{hasMoreMatches}
 }
 \description{
-\code{KorAPQuery} objetcs represent the current state of a query to a KorAP server.
+\code{KorAPQuery} objects represent the current state of a query to a KorAP server.
 New \code{KorAPQuery} objects are typically created by the \code{\link{corpusQuery}} method.
 
 \bold{\code{fetchNext}} fetches the next bunch of results of a KorAP query.
diff --git a/man/RKorAPClient.Rd b/man/RKorAPClient.Rd
index 5331e5a..3a72acc 100644
--- a/man/RKorAPClient.Rd
+++ b/man/RKorAPClient.Rd
@@ -5,7 +5,7 @@
 \alias{RKorAPClient}
 \title{\code{RKorapClient} package}
 \description{
-R pakcage to access the \href{https://github.com/KorAP/}{KorAP} web service API.
+R package to access the \href{https://github.com/KorAP/}{KorAP} web service API.
 }
 \details{
 See the README.md on
diff --git a/man/ci.Rd b/man/ci.Rd
index 6cf9bef..cb51cad 100644
--- a/man/ci.Rd
+++ b/man/ci.Rd
@@ -11,7 +11,7 @@
 
 \item{x}{column with the observed absolute frequency.}
 
-\item{N}{column with the total frequncies}
+\item{N}{column with the total frequencies}
 
 \item{conf.level}{confidence level of the returned confidence interval. Must
 be a single number between 0 and 1.}
@@ -35,5 +35,5 @@
 }
 }
 \seealso{
-\code{ci} is alread included in \code{\link{frequencyQuery}}
+\code{ci} is already included in \code{\link{frequencyQuery}}
 }
diff --git a/man/corpusQuery-KorAPConnection-method.Rd b/man/corpusQuery-KorAPConnection-method.Rd
index d8af528..60bd2aa 100644
--- a/man/corpusQuery-KorAPConnection-method.Rd
+++ b/man/corpusQuery-KorAPConnection-method.Rd
@@ -37,18 +37,18 @@
 
 \item{fields}{(meta)data fields that will be fetched for every match.}
 
-\item{accessRewriteFatal}{abort if query or given vc had to be rewritten due to insufficent rights (not yet implemented).}
+\item{accessRewriteFatal}{abort if query or given vc had to be rewritten due to insufficient rights (not yet implemented).}
 
 \item{verbose}{print some info}
 
-\item{expand}{logical that deicdes if \code{query} and \code{vc} parameters are expanded to all of their combinations}
+\item{expand}{logical that decides if \code{query} and \code{vc} parameters are expanded to all of their combinations}
 
 \item{as.df}{return result as data frame instead of as S4 object?}
 }
 \value{
 Depending on the \code{as.df} parameter, a table or a \code{\link{KorAPQuery}} object that, among other information, contains the total number of results in \code{@totalResults}. The resulting object can be used to fetch all query results (with \code{\link{fetchAll}}) or the next page of results (with \code{\link{fetchNext}}).
 A corresponding URL to be used within a web browser is contained in \code{@webUIRequestUrl}
-Please make sure to check \code{$collection$rewrites} to see if any unforseen access rewrites of the query's virtual corpus had to be performed.
+Please make sure to check \code{$collection$rewrites} to see if any unforeseen access rewrites of the query's virtual corpus had to be performed.
 }
 \description{
 Perform a corpus query via a connection to a KorAP-API-server.
diff --git a/man/hc_freq_by_year_ci.Rd b/man/hc_freq_by_year_ci.Rd
index 0781eb8..5517d7d 100644
--- a/man/hc_freq_by_year_ci.Rd
+++ b/man/hc_freq_by_year_ci.Rd
@@ -13,7 +13,7 @@
 \arguments{
 \item{df}{data frame like the value of a \code{\link{frequencyQuery}}}
 
-\item{as.alternatives}{boolean decides whether queries should be treatet queries as mutually exclusive and exahustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).}
+\item{as.alternatives}{boolean decides whether queries should be treated as mutually exclusive and exhaustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).}
 
 \item{ylabel}{defaults to \% if \code{as.alternatives} is \code{true} and to "ipm" otherwise.}
 }