CN111859920A - Method and system for identifying word spelling errors and electronic equipment - Google Patents

Method and system for identifying word spelling errors and electronic equipment Download PDF

Info

Publication number
CN111859920A
CN111859920A CN202010568117.5A CN202010568117A CN111859920A CN 111859920 A CN111859920 A CN 111859920A CN 202010568117 A CN202010568117 A CN 202010568117A CN 111859920 A CN111859920 A CN 111859920A
Authority
CN
China
Prior art keywords
letter
comparison
correct
letters
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010568117.5A
Other languages
Chinese (zh)
Inventor
杨校松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Guoyin Redwood Education Technology Co ltd
Original Assignee
Beijing Guoyin Redwood Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Guoyin Redwood Education Technology Co ltd filed Critical Beijing Guoyin Redwood Education Technology Co ltd
Priority to CN202010568117.5A priority Critical patent/CN111859920A/en
Publication of CN111859920A publication Critical patent/CN111859920A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Machine Translation (AREA)

Abstract

The invention relates to the technical field of intelligent memory methods, in particular to a method and a system for identifying word spelling errors and electronic equipment. The invention provides a method for identifying word spelling errors, which comprises the following steps: providing paraphrase or pronunciation of a word for a user to obtain a correct word; acquiring input content of a user; comparing the input content with the correct words letter by letter to carry out various wrong guesses; and determining the error type according to the comparison of the error guess results. The user inputs words by spelling according to the paraphrases or the pronunciations of the words, judges the input contents one by one, and determines the error type according to whether the error guess result meets the condition of the error guess or not. The invention also provides a system for identifying word spelling errors and electronic equipment.

Description

Method and system for identifying word spelling errors and electronic equipment
The technical field is as follows:
the invention relates to the technical field of intelligent memory methods, in particular to a method and a system for identifying word spelling errors and electronic equipment.
Background art:
with the development of society, knowledge is more and more important in the social system, and the current society has no knowledge as a support and is difficult to stand. It is recognized that knowledge can vary in all respects. The investment in education for each household in the society is now a large percentage of the total household income. In the process of learning foreign languages, particularly letter languages such as english, french, german and the like, spelling of words is difficult, so that students have certain difficulties in word rote, such as missed writing, over writing or wrong writing. A user can only hold a book to remember a hard back, manually check errors of spelling, and judge the wrong spelling of a word by some methods, but the user cannot carry out targeted memory on the wrong spelling without a reasonable method or system for identifying the wrong spelling type, cannot carry out targeted memory on the wrong type, cannot carry out differential display on the wrong type subsequently, cannot effectively learn the word, loses learning interest for a long time, and cannot well master a foreign language because many students cannot firmly remember the word.
The invention is provided in view of the above.
The invention content is as follows:
the invention provides a method, a system and an electronic device for identifying word spelling errors, which at least solve the problem.
The invention provides a method for identifying word spelling errors, which comprises the following steps:
providing paraphrase or pronunciation of a word for a user to obtain a correct word;
acquiring input content of a user;
comparing the input content with the correct words letter by letter to carry out various wrong guesses;
and determining the error type according to the comparison of the error guess results.
The error type corresponds to the error guess, and may be write error, write many, write missing, and the like.
By adopting the scheme, a user spells and inputs words according to the paraphrases or the pronunciations of the words, the method for identifying the misspelling of the words judges input contents one by one, determines the type of errors according to whether the misguess result meets the condition of the misguess, identifies the wrong letters of the input contents, and is convenient for distinguishing and setting the wrong letters and the correct letters subsequently; the error types of the error letters are recognized, so that the error letters of different error types can be distinguished and set conveniently in the follow-up process, such as different display settings, storage settings, review settings and the like, for example, different errors are distinguished and displayed for a user, the user can quickly recognize the error types and deepen memory, or different error types are stored respectively, the user can only do blank filling review for a certain type such as missed writing, only do error checking review for a written error, or set different review time intervals for different error types respectively, so as to distinguish memory and improve learning efficiency.
Further, the letter-by-letter comparison of the input content and the correct word, and the multiple false guesses, comprises the following steps:
setting a specific letter of input content as a comparison letter, and acquiring a correct letter corresponding to the comparison letter in a correct word;
judging whether the comparison letters are the same as the correct letters or not, if so, accumulating the same number of the corresponding letters, and comparing the next group of letters; if not, carrying out multiple wrong guesses, and obtaining the same number of corresponding letters under each wrong guess.
By adopting the scheme, the corresponding same number in various wrong guesses is compared, the wrong guesses with the same number of the following corresponding letters are determined as the wrong types, the multiple guesses are comprehensively considered by the result obtained by the method, the wrong types of the compared letters are obtained by fully utilizing the comparison condition of the following letters, the calculation is simple, and the result is reliable.
Further, the step of performing a plurality of false guesses to obtain the same number of corresponding letters under each false guess comprises the following steps:
taking the next letter of the comparison letter as a comparison letter and/or taking the next letter of the correct letter as a correct letter, taking the comparison letter and the following letter as input contents of a next level, taking the correct letter and the following letter as correct words of the next level, repeating the letter-by-letter comparison of the input contents and the correct words, and performing various wrong guesses; obtaining the same number of the corresponding letters behind the comparison letters in the first level;
Wherein, when the comparison letter is the first letter of the input content, the correct letter is the first letter of the correct word; if no letter exists behind the correct letter, the result of taking the next letter of the comparison letter as the comparison letter is that the correct letter is empty, and the comparison letter has the same reason and is different from the comparison result of any letter when the comparison letter is empty.
By adopting the scheme, a recursion thought is used, in the process of each wrong guess, a plurality of wrong guesses are carried out, all possible situations are considered, the comparison letters in all possible situations correspond to the same number of the correct letters and are the result of the initial guess, the result of the wrong guess of the initial comparison letters and the initial correct letters is used as the result of the wrong guess of the initial comparison letters and the initial correct letters, and then the type of the errors is judged, and the result is reliable.
Further, the step of performing a plurality of false guesses and obtaining the same number of corresponding letters under each false guess further comprises the following steps:
and judging whether the correct letter is empty or not, and if so, directly determining the error types of the comparison letter and all the following letters.
By adopting the scheme, when the last letter of the correct word is compared with the corresponding comparison letter, the correct letter is empty, redundant letters are arranged behind the comparison letters, the comparison letters are judged to be over-written, and comparison one by one is not performed, so that calculation is simplified, and efficiency is improved.
Further, the step of performing a plurality of false guesses and obtaining the same number of corresponding letters under each false guess further comprises the following steps:
and judging whether the correct letter is empty or not, if not, judging whether the comparison letter is empty or not, if so, acquiring the number N of letters behind the correct letter, wherein the error type of the comparison letter is missed writing, and the error type of the N letters behind the comparison letter is missed writing.
By adopting the scheme, after the error type of the last letter of the input content is judged, the correct word is not compared and judged at the moment, which shows that the input content is compared with the correct word, the letters are missed at the end, the rest correct letters are not compared one by one, the calculation is simplified, and the efficiency is improved.
Further, the method for identifying misspelling words comprises the following steps:
and directly judging the error type according to whether the input content of the user is empty or not.
By adopting the scheme, when the user can not spell the word, the error type is directly judged, if the user can not or neglects writing, various error guesses are not carried out any more, and the calculation efficiency is greatly improved.
Further, the directly determining the error type according to whether the input content of the user is empty includes the following steps:
And judging whether the input content of the user is empty, if so, acquiring the number M of the letters of the correct word, judging the error type of the M letters to be the skip writing, and not performing various error guesses.
By adopting the scheme, when the user can not spell the word at all, the wrong type judgment is made in time, subsequent guessing and calculation are not needed, the calculation steps are simplified, and the efficiency is improved.
Further, the method for identifying misspelling words comprises the following steps:
and revising the input content according to the error types, and displaying error identifications of different error types.
The different error types have different error identifications, for example, when the error type is multi-writing, the error identification is a deletion line, when the error type is under-writing, when the error type is miswriting, the error identification is the correct letter, other error identifications can be adopted, and simultaneously, all the error types can also be distinguished from the correct letter by using other font colors or shading colors.
By adopting the scheme, the user can intuitively and efficiently obtain the error condition of the word spelling, including the error number and the error type of the word spelling, so that the user can learn in a targeted manner, and the learning efficiency is improved.
In another aspect, the present invention further provides a system for identifying misspelling of a word, including:
the initial module is used for providing paraphrase or pronunciation of a word for a user and acquiring a correct word;
the input module is used for acquiring input contents of a user;
the guessing module is used for comparing the input content with the correct words one by one to carry out various wrong guesses;
and the determining module is used for determining the error type according to the comparison of the error guessing results.
Further, the guessing module comprises:
the letter setting unit is used for setting a specific letter of the input content as a comparison letter and acquiring a correct letter corresponding to the comparison letter in a correct word;
the comparison unit is used for judging whether the comparison letters are the same as the correct letters or not, if so, accumulating the same number of the corresponding letters, and comparing the next group of letters; if not, switching to a guessing unit;
and the guessing unit is used for carrying out various wrong guesses and obtaining the same number of corresponding letters under each wrong guess.
Further, the guessing unit comprises:
the multi-writing guess subunit is used for taking the next letter of the comparison letter as the comparison letter, taking the comparison letter and the following letter as the input content of the next level, taking the correct letter and the following letter as the correct word of the next level, repeating the letter-by-letter comparison of the input content and the correct word, and performing various wrong guesses; obtaining the same number of the corresponding letters behind the comparison letters in the first level;
The missed guess subunit is used for taking the next letter of the correct letter as the correct letter, taking the comparison letter and the following letter as the input content of the next level, taking the correct letter and the following letter as the correct word of the next level, repeating the letter-by-letter comparison of the input content and the correct word, and performing various wrong guesses; obtaining the same number of the corresponding letters behind the comparison letters in the first level;
a miswriting guess subunit, configured to use the next letter of the comparison letter as a comparison letter, use the next letter of the correct letter as a comparison letter, use the comparison letter and the following letter as input contents of a next level, use the correct letter and the following letter as correct words of the next level, repeat the letter-by-letter comparison between the input contents and the correct words, and perform multiple kinds of misguesses; and obtaining the same number of the letters corresponding to the letters behind the comparison letters in the first level.
Further, the guessing unit further comprises:
and the multi-writing judging subunit is used for judging whether the correct letter is empty, and if so, directly determining that the error types of the comparison letter and all the following letters are multi-writing.
Further, the guessing unit further comprises:
and the missed writing judging subunit is used for judging whether the correct letter is empty, if not, judging whether the comparison letter is empty, if so, acquiring the number N of letters behind the correct letter, wherein the error type of the comparison letter is missed writing, and the error type of the N letters behind the comparison letter is missed writing.
Further, the system for recognizing misspelling of word also comprises:
and the judgment module is used for directly judging the error type according to whether the input content of the user is empty or not, judging whether the input content of the user is empty or not, acquiring the number M of the letters of the correct word if the input content of the user is empty, judging the error type of the M letters to be over-written and not carrying out various error guesses.
Further, the system for recognizing misspelling of words comprises:
and the result module is used for revising the input content according to the error types and displaying the error identifications of different error types.
The different error types have different error identifications, for example, when the error type is multi-writing, the error identification is a deletion line, when the error type is under-writing, when the error type is miswriting, the error identification is the correct letter, other error identifications can be adopted, and simultaneously, all the error types can also be distinguished from the correct letter by using other font colors or shading colors.
The invention also protects an electronic device, which comprises a memory and a processor, wherein the memory is provided with at least one instruction, and the at least one instruction is loaded and executed by the processor so as to realize the method for identifying the word spelling error.
The invention has the beneficial effects that:
1. the user spells and inputs the words according to the paraphrases or the pronunciations of the words, judges the input contents one by one, determines the error type according to whether the wrong guess result accords with the condition of the wrong guess, and judges whether each letter is correct or not and the error type so as to carry out subsequent operation;
2. the corresponding same number in various wrong guesses is compared, the wrong guesses with the same number of the following corresponding letters are determined as the wrong types, the multiple guesses are comprehensively considered by the result obtained by the method, the wrong types of the compared letters are obtained by fully utilizing the comparison condition of the following letters, the calculation is simple, and the result is reliable;
3. using a recursion thought, in each wrong guess process, performing a plurality of wrong guesses, considering all possible situations, taking the same number sum of the comparison letters and the correct letters in all possible situations as the initial wrong guess result of the comparison letters and the correct letters, and further judging the wrong type, wherein the result is reliable;
4. Whether the content behind the input content is wrongly written or missed can be determined in advance by judging whether the rear parts of the comparison letters and the correct letters are empty or not, so that the calculation is simplified, and the efficiency is improved;
5. by judging whether the input content is empty or not, the calculation is greatly simplified, the error type is rapidly judged, and the efficiency is improved.
Description of the drawings:
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of one embodiment of a method for identifying misspelling of a word in accordance with the present invention;
FIG. 2 is a flow chart of another embodiment of a method for identifying misspelling of a word according to the present invention;
FIG. 3 is a flow chart of yet another embodiment of a method for identifying misspelling of a word in accordance with the present invention;
FIG. 4 is a diagram illustrating an embodiment of a misspelling word recognition system according to the present invention;
FIG. 5 is an interface of a user spelling a word in the misspelling word recognition system of the present invention;
FIG. 6 is an interface of a first input result after spelling a word by a user in the misspelling word recognition system of the present invention;
FIG. 7 is an interface of a second input result after the user spells a word in the misspelling word recognition system of the present invention;
FIG. 8 is an interface of a third input result after the user spells a word in the misspelling word recognition system of the present invention.
Description of the reference numerals
The technical scheme of the invention can be more clearly understood and explained by combining the embodiment of the invention through the reference sign description.
100. An initial module; 200. an input module; 300. a null judgment module; 400. a guessing module; 410. a letter setting unit; 420. a comparison unit; 430. a guessing unit; 431. a multiple-write guess subunit; 432. a miss-write guess subunit; 433. a miswritten guess subunit; 434. a multi-write decision subunit; 435. a missed write determination subunit; 500. a determination module; 600. and a result module.
The specific implementation mode is as follows:
reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The word mentioned herein can refer to but not limited to english word, and for the convenience of unified calculation, the units of operation related to duration are unified as second.
Referring to fig. 1, the present invention provides a method for identifying misspelling of a word, comprising the steps of:
s100, providing paraphrase or pronunciation of a word for a user to obtain a correct word, as shown in FIG. 5;
s200, acquiring input contents of a user;
s400, comparing the input content with the correct words one by one to carry out multiple wrong guesses;
s500, determining the error type according to the comparison of the error guess results.
The error type corresponds to the error guess, and may be write error, write many, write missing, and the like.
By adopting the scheme, a user spells and inputs words according to the paraphrases or the pronunciations of the words, the method for identifying the misspelling of the words judges input contents one by one, determines the type of errors according to whether the misguess result meets the condition of the misguess, identifies the wrong letters of the input contents, and is convenient for distinguishing and setting the wrong letters and the correct letters subsequently; the error types of the error letters are recognized, so that the error letters of different error types can be distinguished and set conveniently in the follow-up process, such as different display settings, storage settings, review settings and the like, for example, different errors are distinguished and displayed for a user, the user can quickly recognize the error types and deepen memory, or different error types are stored respectively, the user can only do blank filling review for a certain type such as missed writing, only do error checking review for a written error, or set different review time intervals for different error types respectively, so as to distinguish memory and improve learning efficiency.
Referring to fig. 2, in a preferred embodiment of the present invention, the s400. performing letter-by-letter comparison of the input content with the correct word, performing multiple false guesses includes the steps of:
s410, setting specific letters of input contents as comparison letters, and acquiring correct letters corresponding to the comparison letters in correct words;
specifically, as shown in fig. 5, "ddedcte" is entered in the text box, where the correct word is "delay", the first letter "d" in the input content "ddedcte" is the comparison letter when compared for the first time, and the first letter "d" in the correct word "delay" is the correct letter.
S420, judging whether the comparison letters are the same as the correct letters or not, if so, accumulating the same number of the corresponding letters, and comparing the next group of letters; if not, S430, a plurality of error guesses are carried out, and the same number of corresponding letters under each error guess is obtained.
Specifically, when the comparison letter "d" is the same as the correct letter "d", the comparison letter "d" corresponds to the same letter and is accumulated by 1, and the next group of letter comparison is performed: the comparison letter is changed into the next letter, i.e. the input content
The second letter "d" in "ddedcete", which becomes the next letter, i.e. the correct word is the second letter "e" in "delay", the letters are different, a plurality of wrong guesses are made, the same number of corresponding letters is obtained for each wrong guess, several letters following the comparison letter "d" can be checked for the same number, e.g. the last 3 letters are checked, i.e. when the guesses are multiple-written, the comparison letter is moved backwards by one position, the comparison "edc" in "ddedcete" corresponds to the same number as "eli" in "delay", the result is 1, if the result is 0, the comparison can also be moved backwards by two positions or three positions, e.g. the comparison "dce" or "cet" in "ddedcete", the same number as "eli" in "delay"; supposing that the characters are missed, the correct letters are moved backwards by one position, the same number of the true letters is compared with the true letters of lic in the identity, and the result is 0, and the correct letters can also be moved backwards by two or three positions, such as the true letters or the true letters in the identity and the true letters in the identity, and the result is 0; guessing as wrongly written, the comparison letters and the correct letters are shifted backwards by one bit, namely the comparison between the "edc" in the "ddedcete" and the "lic" in the "delete" corresponds to the same number, and the result is 0; in summary, the maximum result value is 1 when the guess is multi-written, 0 when the guess is over-written, and 0 when the guess is wrongly written, and the error type of the second letter "d" is determined to be multi-written by combining the multiple guess results. Other methods can also be used to determine the same number of subsequent samples, such as whether the recursive comparisons are the same.
By adopting the scheme, the corresponding same number in various wrong guesses is compared, the wrong guesses with the same number of the following corresponding letters are determined as the wrong types, the multiple guesses are comprehensively considered by the result obtained by the method, the wrong types of the compared letters are obtained by fully utilizing the comparison condition of the following letters, the calculation is simple, and the result is reliable.
Referring to fig. 3, in a preferred embodiment of the present invention, the s430. performing a plurality of error hypotheses to obtain the same number of corresponding letters for each error hypothesis includes the steps of:
multiple write guesses: s431, taking the next letter of the comparison letter as a comparison letter, S434, taking the comparison letter and the following letters as input contents of the next level, taking the correct letter and the following letters as correct words of the next level, repeating the S400, comparing the input contents with the correct words one by one, and carrying out multiple wrong guesses; s435, obtaining the same number of corresponding letters behind the comparison letters in the first level;
missing a guess: s432, taking the next letter of the correct letter as a correct letter, S434, taking the comparison letter and the following letter as input contents of the next level, taking the correct letter and the following letter as correct words of the next level, and repeating S400, wherein the input contents and the correct words are compared one by one to carry out multiple wrong guesses; s435, obtaining the same number of corresponding letters behind the comparison letters in the first level;
Miswritten guesses: s433, taking the next letter of the comparison letter as a comparison letter, taking the next letter of the correct letter as a comparison letter, S434, taking the comparison letter and the following letter as input contents of a next level, taking the correct letter and the following letter as correct words of the next level, and repeating S400, wherein the input contents and the correct words are compared one by one to carry out multiple wrong guesses; and S435, obtaining the same number of the letters corresponding to the letters behind the comparison letters in the first level.
Specifically, referring to fig. 6, in the process of performing various false guesses for the second letter "d" in "ddedcate" and the second letter "e" in "delay", guessing whether "d" is multiple-written, changing the comparison letter into the next letter, i.e. the third letter "e" in "ddedcate", changing the input content of the next stage into "edcate", changing the correct word of the next stage into "electronic", starting comparison from the beginning, when the comparison letter "e" is the same as the correct letter "e", adding 1 to the number of the corresponding letter, then performing the next group, moving the comparison letter backward by one bit to "d", moving the correct letter down by one bit to "l", performing three false guesses, and finally obtaining the number of the corresponding letter after the second letter "d" in "ddedcate" as 4; guessing whether the'd' is a little-written word, changing the correct letter into the next letter, namely the third letter 'l' in the 'delay', changing the input content of the next level into 'dedcet', changing the correct word of the next level into 'licate', changing the comparison letter into'd', changing the correct letter into 'l', then carrying out three kinds of wrong guesses, and finally obtaining the same number of 3 corresponding letters behind the second letter'd' in the 'ddedcete'; guessing whether the d is wrongly written, changing the input content of the next level into 'edceate', changing the correct word of the next level into 'licate', changing the comparison letter into 'e', changing the correct letter into 'l', then performing three kinds of wrong guessing, and finally obtaining the same number of 3 corresponding letters behind the second letter'd' in the 'ddedcate'; comparing the results of the three error guesses, determining the error type of the second letter "d" in "ddedcete" as multi-write.
Wherein, when the comparison letter is the first letter of the input content, the correct letter is the first letter of the correct word; if no letter exists behind the correct letter, the result of taking the next letter of the comparison letter as the comparison letter is that the correct letter is empty, and the comparison letter has the same reason and is different from the comparison result of any letter when the comparison letter is empty.
By adopting the scheme, a recursion thought is used, in the process of each wrong guess, a plurality of wrong guesses are carried out, all possible situations are considered, the comparison letters in all possible situations correspond to the same number of the correct letters and are the result of the initial guess, the result of the wrong guess of the initial comparison letters and the initial correct letters is used as the result of the wrong guess of the initial comparison letters and the initial correct letters, and then the type of the errors is judged, and the result is reliable.
In a preferred embodiment of the present invention, the s430. performing a plurality of false guesses, and obtaining the same number of corresponding letters under each false guess further comprises the steps of:
s436, judging whether the correct letter is empty, if so, S437, directly determining the error types of the comparison letter and all the following letters as multiple-writing.
Specifically, referring to fig. 7, the 8 th letter "e" in the input content "deleted" is compared with the 8 th letter "e" of the correct word "deleted", and as a result, the next group of comparison is entered, where the comparison letter is "e" and the correct letter is null, and the error types of the comparison letter "e" and the subsequent letter "d" are directly determined as miswritten.
By adopting the scheme, when the last letter of the correct word is compared with the corresponding comparison letter, the correct letter is empty, the redundant letters behind the comparison letters are judged to be wrongly written, and the comparison is not performed one by one, so that the calculation is simplified, and the efficiency is improved.
In a preferred embodiment of the present invention, the s430. performing a plurality of false guesses, and obtaining the same number of corresponding letters under each false guess further comprises the steps of:
s436, judging whether the correct letter is empty, if not, S438, judging whether the comparison letter is empty, if so, S439, acquiring the number N of letters behind the correct letter, wherein the error type of the comparison letter is missed writing, and the error type of the N letters behind the comparison letter is missed writing.
Specifically, referring to fig. 8, the 6 th letter "a" of the comparison input content "delay" is the same as the 6 th letter "a" of the correct word "delay", and a next group of comparison is performed, where the correct letter is "t" and is not null, the comparison letter is null, the number N of the following letters of the correct letter is 1, and if the error type of the comparison letter is null, and one is missed later.
By adopting the scheme, after the error type of the last letter of the input content is judged, the correct word is not compared and judged at the moment, which shows that the input content is compared with the correct word, the letters are missed at the end, the rest correct letters are not compared one by one, the calculation is simplified, and the efficiency is improved.
In a preferred embodiment of the present invention, the method for identifying misspelling of a word comprises the following steps:
referring to fig. 1, s300, the error type is directly determined according to whether the input content of the user is empty.
By adopting the scheme, when the user can not spell the word, the error type is directly judged, if the user can not or neglects writing, various error guesses are not carried out any more, and the calculation efficiency is greatly improved.
Referring to fig. 2, in a preferred embodiment of the present invention, the s300, directly determining the error type according to whether the input content of the user is empty includes the following steps:
s310, judging whether the input content of the user is empty, if so, S320, obtaining the number M of the letters of the correct word, judging the error types of the M letters to be write omission, and not performing various error guesses.
By adopting the scheme, when the user can not spell the word at all, the wrong type judgment is made in time, subsequent guessing and calculation are not needed, the calculation steps are simplified, and the efficiency is improved.
In a preferred embodiment of the present invention, the method for identifying misspelling of a word comprises the following steps:
s600, revising the input content according to the error types, and displaying error identifications of different error types.
Referring to fig. 6, for example, the error type of the second letter "d" in the input content "ddedcte" is multiple-writing, the error identifier is a strikethrough, the error type behind the 4 th letter is a missed-writing "i", the error identifier is an underline, the error type of the 4 th letter "d" is a miswriting, the error identifier is a highlight color, such as red, and meanwhile, all the error types may use other font colors or shading colors to distinguish correctly spelled letters.
By adopting the scheme, the user can intuitively and efficiently obtain the error condition of the word spelling, including the error number and the error type of the word spelling, so that the user can learn in a targeted manner, and the learning efficiency is improved.
Referring to fig. 4, another aspect of the present invention further provides a word spelling error recognition system, including:
an initial module 100, configured to provide a paraphrase or pronunciation of a word for a user, and obtain a correct word, as shown in fig. 5;
An input module 200, configured to obtain input content of a user;
a guessing module 400 for comparing the input content with the correct word letter by letter to make various wrong guesses;
a determining module 500 for determining the type of error based on the comparison of the results of the error guesses.
In a preferred embodiment of the present invention, the guessing module 400 includes:
a letter setting unit 410, configured to set a specific letter of the input content as a comparison letter, and obtain a correct letter corresponding to the comparison letter in a correct word;
a comparing unit 420, configured to determine whether the comparison alphabet is the same as the correct alphabet, and if so, accumulate the same number of corresponding alphabets, and perform a next group of alphabet comparison; if not, switching to a guessing unit;
guessing unit 430 is used for performing a plurality of false guesses, and obtaining the same number of corresponding letters for each false guess.
In a preferred embodiment of the present invention, the guessing unit 430 includes:
a multi-writing guess subunit 431, configured to use the next letter of the comparison letter as a comparison letter, use the comparison letter and the following letters as input contents of a next level, use the correct letter and the following letters as correct words of the next level, repeat the letter-by-letter comparison between the input contents and the correct words, and perform multiple kinds of wrong guesses; obtaining the same number of the corresponding letters behind the comparison letters in the first level;
A missed guess subunit 432, configured to use the next letter of the correct letter as a correct letter, use the comparison letter and the following letter as input contents of a next level, use the correct letter and the following letter as correct words of the next level, repeat the letter-by-letter comparison between the input contents and the correct words, and perform multiple kinds of wrong guesses; obtaining the same number of the corresponding letters behind the comparison letters in the first level;
a miswriting guess subunit 433, configured to use the next letter of the comparison letter as a comparison letter, use the next letter of the correct letter as a comparison letter, use the comparison letter and the following letter as input contents of a next level, use the correct letter and the following letter as correct words of the next level, repeat the letter-by-letter comparison between the input contents and the correct words, and perform multiple kinds of misguesses; and obtaining the same number of the letters corresponding to the letters behind the comparison letters in the first level.
In a preferred embodiment of the present invention, the guessing unit 430 further includes:
a multi-writing determining subunit 434, configured to determine whether the correct letter is empty, and if yes, directly determine that the error types of the comparison letter and all subsequent letters are multi-writing.
In a preferred embodiment of the present invention, the guessing unit 430 further includes:
a missed writing judgment subunit 435, configured to judge whether the correct letter is empty, if not, judge whether the comparison letter is empty, if yes, obtain the number N of letters behind the correct letter, where the error type of the comparison letter is missed writing, and the error type of N letters behind the comparison letter is missed writing.
In a preferred embodiment of the present invention, the system for recognizing misspelling of words further comprises:
and the judging module 300 is used for directly judging the error type according to whether the input content of the user is empty or not, judging whether the input content of the user is empty or not, acquiring the number M of the letters of the correct word if the input content of the user is empty, judging the error type of the M letters to be over-written, and not performing various error guesses any more.
In a preferred embodiment of the present invention, the system for recognizing misspelling of a word comprises:
the result module 600 is used to revise the input content according to the error types and display the error identifications of different error types, as shown in fig. 6-8.
The invention also provides an electronic device, which comprises a memory and a processor, wherein the memory is provided with at least one instruction, and the at least one instruction is loaded and executed by the processor so as to realize the method for identifying the word spelling error.
It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the protection scope of the claims of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A method for identifying misspelling of a word, comprising: the method comprises the following steps:
providing paraphrase or pronunciation of a word for a user to obtain a correct word;
acquiring input content of a user;
comparing the input content with the correct words letter by letter to carry out various wrong guesses;
and determining the error type according to the comparison of the error guess results.
2. The method for recognizing misspelling of a word according to claim 1, wherein: the letter-by-letter comparison of the input content and the correct word is carried out, and the multiple wrong guesses are carried out by the following steps:
setting a specific letter of input content as a comparison letter, and acquiring a correct letter corresponding to the comparison letter in a correct word;
judging whether the comparison letters are the same as the correct letters or not, if so, accumulating the same number of the corresponding letters, and comparing the next group of letters; if not, carrying out multiple wrong guesses, and obtaining the same number of corresponding letters under each wrong guess.
3. The method for recognizing misspelling of a word according to claim 2, wherein: the step of carrying out multiple wrong guesses and obtaining the same number of corresponding letters under each wrong guess comprises the following steps:
taking the next letter of the comparison letter as a comparison letter and/or taking the next letter of the correct letter as a correct letter, taking the comparison letter and the following letter as input contents of a next level, taking the correct letter and the following letter as correct words of the next level, repeating the letter-by-letter comparison of the input contents and the correct words, and performing various wrong guesses; and obtaining the same number of the letters corresponding to the letters behind the comparison letters in the first level.
4. The method for recognizing misspelling of a word according to claim 3, wherein: the step of carrying out a plurality of wrong guesses and obtaining the same number of corresponding letters under each wrong guess further comprises the following steps:
and judging whether the correct letter is empty or not, and if so, directly determining the error types of the comparison letter and all the following letters.
5. The method for recognizing misspelling of a word according to claim 4, wherein: the step of carrying out a plurality of wrong guesses and obtaining the same number of corresponding letters under each wrong guess further comprises the following steps:
and judging whether the correct letter is empty or not, if not, judging whether the comparison letter is empty or not, if so, acquiring the number N of letters behind the correct letter, wherein the error type of the comparison letter is missed writing, and the error type of the N letters behind the comparison letter is missed writing.
6. The method for recognizing misspelling of a word according to claim 5, wherein: the method for identifying the word misspelling comprises the following steps:
and directly judging the error type according to whether the input content of the user is empty or not.
7. The method for recognizing misspelling of a word according to any one of claims 1 to 6, wherein: the method for identifying the word misspelling comprises the following steps:
And revising the input content according to the error types, and displaying error identifications of different error types.
8. A system for identifying misspellings of words, the system comprising: the method comprises the following steps:
the initial module (100) is used for providing paraphrase or pronunciation of a word for a user and acquiring a correct word;
the input module (200) is used for acquiring input contents of a user;
a guessing module (400) for comparing the input content with the correct word letter by letter to make various wrong guesses;
a determination module (500) for determining a type of error based on the comparison of the results of the error guesses.
9. The system for recognition of misspelling words according to claim 8, wherein: the guessing module (400) comprises:
a letter setting unit (410) for setting a specific letter of the input content as a comparison letter and acquiring a correct letter corresponding to the comparison letter in a correct word;
a comparison unit (420) for judging whether the comparison letters are the same as the correct letters, if so, accumulating the same number of the corresponding letters, and comparing the next group of letters; if not, go to guess the unit (430);
and a guessing unit (430) for performing a plurality of false guesses, and obtaining the same number of corresponding letters for each false guess.
10. An electronic device, characterized in that: the electronic device comprises a memory and a processor, wherein the memory is provided with at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the method for identifying the misspelling of the word according to any one of claims 1 to 7.
CN202010568117.5A 2020-06-19 2020-06-19 Method and system for identifying word spelling errors and electronic equipment Pending CN111859920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010568117.5A CN111859920A (en) 2020-06-19 2020-06-19 Method and system for identifying word spelling errors and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010568117.5A CN111859920A (en) 2020-06-19 2020-06-19 Method and system for identifying word spelling errors and electronic equipment

Publications (1)

Publication Number Publication Date
CN111859920A true CN111859920A (en) 2020-10-30

Family

ID=72987501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568117.5A Pending CN111859920A (en) 2020-06-19 2020-06-19 Method and system for identifying word spelling errors and electronic equipment

Country Status (1)

Country Link
CN (1) CN111859920A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036135A (en) * 2020-11-06 2020-12-04 腾讯科技(深圳)有限公司 Text processing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727271A (en) * 2008-10-22 2010-06-09 北京搜狗科技发展有限公司 Method and device for providing error correcting prompt and input method system
CN102298577A (en) * 2011-09-21 2011-12-28 深圳市万兴软件有限公司 Method and device for detecting spelling of document edition
US20140298168A1 (en) * 2013-03-28 2014-10-02 Est Soft Corp. System and method for spelling correction of misspelled keyword
CN104933030A (en) * 2015-06-25 2015-09-23 中通服公众信息产业股份有限公司 Uygur language spelling examination method and device
CN105824804A (en) * 2016-03-31 2016-08-03 长安大学 English spelling error correction tool and method based on word bank
CN111063223A (en) * 2020-01-07 2020-04-24 杭州大拿科技股份有限公司 English word spelling practice method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727271A (en) * 2008-10-22 2010-06-09 北京搜狗科技发展有限公司 Method and device for providing error correcting prompt and input method system
CN102298577A (en) * 2011-09-21 2011-12-28 深圳市万兴软件有限公司 Method and device for detecting spelling of document edition
US20140298168A1 (en) * 2013-03-28 2014-10-02 Est Soft Corp. System and method for spelling correction of misspelled keyword
CN104933030A (en) * 2015-06-25 2015-09-23 中通服公众信息产业股份有限公司 Uygur language spelling examination method and device
CN105824804A (en) * 2016-03-31 2016-08-03 长安大学 English spelling error correction tool and method based on word bank
CN111063223A (en) * 2020-01-07 2020-04-24 杭州大拿科技股份有限公司 English word spelling practice method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036135A (en) * 2020-11-06 2020-12-04 腾讯科技(深圳)有限公司 Text processing method and related device

Similar Documents

Publication Publication Date Title
US9489371B2 (en) Detection of data in a sequence of characters
US5161245A (en) Pattern recognition system having inter-pattern spacing correction
US7516404B1 (en) Text correction
CN102890783B (en) The method and apparatus in the direction of word in recognition image block
JPS6355085B2 (en)
TW200407796A (en) Character recognition apparatus and method
US20140199667A1 (en) Conversion of alphabetic words into a plurality of independent spellings
US7561740B2 (en) Systems and methods for automatic graphical sequence completion
CN105243056B (en) A kind of Chinese parsing method and device based on punctuation mark processing
US8411958B2 (en) Apparatus and method for handwriting recognition
CN104007836A (en) Handwriting input processing method and terminal device
CN101479743A (en) Techniques for filtering handwriting recognition results
CN112149680A (en) Wrong word detection and identification method and device, electronic equipment and storage medium
CN111859920A (en) Method and system for identifying word spelling errors and electronic equipment
CN102033866A (en) Method and system for checking chemical name
US20180157635A1 (en) Method for checking spellings and grammars of text document
Muaidi et al. Towards arabic spell-checker based on N-grams scores
CN109241502A (en) Method for accurately extracting word pinyin based on Java
US6978421B1 (en) Handwriting text input system
CN101625678A (en) System and method for checking spelling
KR940007345B1 (en) On-line recognitin method of hand-written korean character
JP2006344053A (en) Patent specification preparation support program
CN108804404B (en) Character text processing method and device
JP4050745B2 (en) Text input system
CN114970493A (en) Method and device for generating markup corpus, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination