All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
@ 2021-06-11  7:12 Zhen Lei
  2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Zhen Lei @ 2021-06-11  7:12 UTC (permalink / raw)
  To: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel
  Cc: Zhen Lei

Add spelling_sanitizer.sh and use it to reorder, then add some spelling
"mistake||correction" pairs.

Zhen Lei (3):
  scripts: add spelling_sanitizer.sh script
  scripts/spelling.txt: sort and remove duplicates
  scripts/spelling.txt: add some spelling "mistake||correction" pairs

 scripts/spelling.txt          | 1216 +++++++++++++++++----------------
 scripts/spelling_sanitizer.sh |   26 +
 2 files changed, 671 insertions(+), 571 deletions(-)
 create mode 100755 scripts/spelling_sanitizer.sh

-- 
2.25.1



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  7:12 [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Zhen Lei
@ 2021-06-11  7:12 ` Zhen Lei
  2021-06-11  7:58   ` Andy Shevchenko
  2021-06-11 15:36   ` Joe Perches
  2021-06-11  7:12 ` [PATCH 2/3] scripts/spelling.txt: sort and remove duplicates Zhen Lei
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 17+ messages in thread
From: Zhen Lei @ 2021-06-11  7:12 UTC (permalink / raw)
  To: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel
  Cc: Zhen Lei

The file scripts/spelling.txt recorded a large number of
"mistake||correction" pairs. These entries are currently maintained in
order, but the results are not strict. In addition, when someone wants to
add some new pairs, he either sort them manually or write a script, which
is clearly a waste of labor. So add this script. It removes the duplicates
first, then sort by correctly spelled words. Sorting based on misspelled
words is not chose because it is uncontrollable.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 scripts/spelling_sanitizer.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100755 scripts/spelling_sanitizer.sh

diff --git a/scripts/spelling_sanitizer.sh b/scripts/spelling_sanitizer.sh
new file mode 100755
index 000000000000..4936c4191653
--- /dev/null
+++ b/scripts/spelling_sanitizer.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+src=spelling.txt
+tmp=spelling_mistake_correction_pairs.txt
+
+cd `dirname $0`
+
+# Convert the format of 'codespell' to the current
+sed -r -i 's/ ==> /||/' $src
+
+# Move the spelling "mistake||correction" pairs into file $tmp
+# There are currently 9 lines of comments in $src, so the text starts at line 10
+sed -n '10,$p' $src > $tmp
+sed -i '10,$d' $src
+
+# Remove duplicates first, then sort by correctly spelled words
+sort -u $tmp -o $tmp
+sort -t '|' -k 3 $tmp -o $tmp
+
+# Append sorted results to comments
+cat $tmp >> $src
+
+# Delete the temporary file
+rm -f $tmp
+
+cd - > /dev/null
-- 
2.25.1



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 2/3] scripts/spelling.txt: sort and remove duplicates
  2021-06-11  7:12 [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Zhen Lei
  2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
@ 2021-06-11  7:12 ` Zhen Lei
  2021-06-11  7:12 ` [PATCH 3/3] scripts/spelling.txt: add some spelling "mistake||correction" pairs Zhen Lei
  2021-06-11  8:02 ` [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Andy Shevchenko
  3 siblings, 0 replies; 17+ messages in thread
From: Zhen Lei @ 2021-06-11  7:12 UTC (permalink / raw)
  To: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel
  Cc: Zhen Lei

Use scripts/spelling_sanitizer.sh to deduplicate and sort. Only one
duplicate was found, "disble||disable" appeared twice.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 scripts/spelling.txt | 1141 +++++++++++++++++++++---------------------
 1 file changed, 570 insertions(+), 571 deletions(-)

diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index 17fdc620d548..18fca77914e3 100644
--- a/scripts/spelling.txt
+++ b/scripts/spelling.txt
@@ -8,76 +8,76 @@
 # mistake||correction
 #
 abandonning||abandoning
-abigious||ambiguous
-abitrary||arbitrary
-abitrate||arbitrate
-abnornally||abnormally
+abreviated||abbreviated
 abnrormal||abnormal
+abnornally||abnormally
 abord||abort
-aboslute||absolute
 abov||above
-abreviated||abbreviated
 absense||absence
+aboslute||absolute
 absolut||absolute
 absoulte||absolute
-acccess||access
-acceess||access
+obusing||abusing
+acclerated||accelerated
 accelaration||acceleration
 acceleratoin||acceleration
 accelleration||acceleration
-accesing||accessing
 accesnt||accent
-accessable||accessible
+acccess||access
+acceess||access
 accesss||access
+acess||access
+accessable||accessible
+acessable||accessible
+accesing||accessing
+acessing||accessing
 accidentaly||accidentally
 accidentually||accidentally
-acclerated||accelerated
-accoding||according
 accomodate||accommodate
 accomodates||accommodates
+accoding||according
 accordign||according
 accoring||according
+acording||according
 accout||account
-accquire||acquire
-accquired||acquired
-accross||across
 accumalate||accumulate
+acumulating||accumulating
+acumulative||accumulative
 accumalator||accumulator
-acessable||accessible
-acess||access
-acessing||accessing
-achitecture||architecture
-acient||ancient
-acitions||actions
-acitve||active
-acknowldegement||acknowledgment
-acknowledgement||acknowledgment
+acumulator||accumulator
 ackowledge||acknowledge
 ackowledged||acknowledged
-acording||according
+acknowldegement||acknowledgment
+acknowledgement||acknowledgment
+aquainted||acquainted
+accquire||acquire
+accquired||acquired
+aquired||acquired
+aquisition||acquisition
+accross||across
+acitions||actions
 activete||activate
 actived||activated
+acitve||active
 actualy||actually
-acumulating||accumulating
-acumulative||accumulative
-acumulator||accumulator
 acutally||actually
 adapater||adapter
 addional||additional
-additionaly||additionally
 additonal||additional
-addres||address
-adddress||address
-addreses||addresses
-addresss||address
-addrress||address
 aditional||additional
+additionaly||additionally
 aditionally||additionally
 aditionaly||additionally
-adminstrative||administrative
+adddress||address
+addres||address
+addresss||address
+addrress||address
 adress||address
+addreses||addresses
 adresses||addresses
 adrresses||addresses
+ajust||adjust
+adminstrative||administrative
 advertisment||advertisement
 adviced||advised
 afecting||affecting
@@ -85,344 +85,348 @@ againt||against
 agaist||against
 aggreataon||aggregation
 aggreation||aggregation
-ajust||adjust
 albumns||albums
-alegorical||allegorical
-algined||aligned
 algorith||algorithm
-algorithmical||algorithmically
-algoritm||algorithm
-algoritms||algorithms
 algorithmn||algorithm
+algoritm||algorithm
 algorrithm||algorithm
 algorritm||algorithm
-aligment||alignment
-alignement||alignment
+alogrithm||algorithm
+algorithmical||algorithmically
+algoritms||algorithms
+alogirhtms||algorithms
 allign||align
+algined||aligned
 alligned||aligned
+aligment||alignment
+alignement||alignment
+alegorical||allegorical
 alllocate||allocate
-alloated||allocated
 allocatote||allocate
-allocatrd||allocated
 allocte||allocate
-allocted||allocated
-allpication||application
 alocate||allocate
-alogirhtms||algorithms
-alogrithm||algorithm
-alot||a lot
+alloated||allocated
+allocatrd||allocated
+allocted||allocated
 alow||allow
 alows||allows
+alot||a lot
 alreay||already
 alredy||already
 altough||although
-alue||value
+abigious||ambiguous
 ambigious||ambiguous
 ambigous||ambiguous
 amoung||among
 amout||amount
 amplifer||amplifier
 amplifyer||amplifier
-an union||a union
-an user||a user
-an userspace||a userspace
-an one||a one
 analysator||analyzer
+acient||ancient
 ang||and
 anniversery||anniversary
 annoucement||announcement
 anomolies||anomalies
 anomoly||anomaly
 anway||anyway
-aplication||application
+an one||a one
 appearence||appearance
+allpication||application
+aplication||application
 applicaion||application
 appliction||application
 applictions||applications
-applys||applies
 appplications||applications
+applys||applies
 appropiate||appropriate
-appropriatly||appropriately
 approriate||appropriate
-approriately||appropriately
 apropriate||appropriate
-aquainted||acquainted
-aquired||acquired
-aquisition||acquisition
+appropriatly||appropriately
+approriately||appropriately
+abitrary||arbitrary
 arbitary||arbitrary
+abitrate||arbitrate
+achitecture||architecture
 architechture||architecture
+arne't||aren't
 arguement||argument
 arguements||arguments
 arithmatic||arithmetic
 aritmetic||arithmetic
-arne't||aren't
 arraival||arrival
 artifical||artificial
 artillary||artillery
-asign||assign
 asser||assert
-assertation||assertion
+asssert||assert
 assertting||asserting
+assertation||assertion
+asign||assign
 assgined||assigned
 assiged||assigned
 assigment||assignment
 assigments||assignments
 assistent||assistant
 assocaited||associated
-assocating||associating
-assocation||association
 associcated||associated
 assotiated||associated
-asssert||assert
+assocating||associating
+assocation||association
 assum||assume
-assumtpion||assumption
 asuming||assuming
+assumtpion||assumption
+asymetric||asymmetric
+asymmeric||asymmetric
+aysnc||async
 asycronous||asynchronous
 asynchnous||asynchronous
 asynchromous||asynchronous
-asymetric||asymmetric
-asymmeric||asymmetric
 atleast||at least
-atomatically||automatically
 atomicly||atomically
-atempt||attempt
-atrributes||attributes
-attachement||attachment
 attatch||attach
 attched||attached
+attachement||attachment
+atempt||attempt
 attemp||attempt
-attemps||attempts
-attemping||attempting
 attepmpt||attempt
+attemping||attempting
+attemps||attempts
 attnetion||attention
+atrributes||attributes
 attruibutes||attributes
-authentification||authentication
+an union||a union
+an user||a user
+an userspace||a userspace
 authenicated||authenticated
-automaticaly||automatically
-automaticly||automatically
+authentification||authentication
 automatize||automate
 automatized||automated
 automatizes||automates
+atomatically||automatically
+automaticaly||automatically
+automaticly||automatically
 autonymous||autonomous
 auxillary||auxiliary
 auxilliary||auxiliary
+availablity||availability
+availavility||availability
 avaiable||available
 avaible||available
 availabe||available
 availabled||available
-availablity||availability
 availaible||available
 availale||available
-availavility||availability
 availble||available
 availiable||available
 availible||available
 avalable||available
 avaliable||available
-aysnc||async
 backgroud||background
+bakup||backup
 backword||backward
 backwords||backwards
-bahavior||behavior
-bakup||backup
+banlance||balance
 baloon||balloon
 baloons||balloons
 bandwith||bandwidth
-banlance||balance
 batery||battery
 beacuse||because
 becasue||because
-becomming||becoming
 becuase||because
-beeing||being
+becomming||becoming
 befor||before
 begining||beginning
+bahavior||behavior
+beeing||being
 beter||better
 betweeen||between
 bianries||binaries
 bitmast||bitmask
-boardcast||broadcast
 borad||board
 boundry||boundary
-brievely||briefly
 brigde||bridge
+brievely||briefly
+boardcast||broadcast
 broadcase||broadcast
 broadcat||broadcast
 bufer||buffer
 bufufer||buffer
-cacluated||calculated
+chache||cache
+cahces||caches
 caculate||calculate
+calucate||calculate
+calulate||calculate
+cacluated||calculated
 caculation||calculation
-cadidate||candidate
-cahces||caches
 calender||calendar
-calescing||coalescing
-calle||called
 callibration||calibration
+calle||called
 callled||called
 callser||caller
-calucate||calculate
-calulate||calculate
-cancelation||cancellation
 cancle||cancel
+cancelation||cancellation
+cadidate||candidate
 canot||cannot
 capabilites||capabilities
 capabilties||capabilities
-capabilty||capability
 capabitilies||capabilities
-capablity||capability
-capatibilities||capabilities
 capapbilities||capabilities
+capatibilities||capabilities
+capabilty||capability
+capablity||capability
 caputure||capture
 carefuly||carefully
 cariage||carriage
 catagory||category
-cehck||check
+chanined||chained
 challange||challenge
 challanges||challenges
-chache||cache
-chanell||channel
+chnage||change
 changable||changeable
-chanined||chained
+chnages||changes
+chanell||channel
 channle||channel
 channnel||channel
+chnnel||channel
 charachter||character
-charachters||characters
 charactor||character
 charater||character
-charaters||characters
 charcter||character
+charachters||characters
+charaters||characters
+cehck||check
 chcek||check
 chck||check
+chked||checked
 checksumed||checksummed
 checksuming||checksumming
+chiled||child
 childern||children
 childs||children
-chiled||child
-chked||checked
-chnage||change
-chnages||changes
-chnnel||channel
-choosen||chosen
 chouse||chose
+choosen||chosen
 circumvernt||circumvent
 claread||cleared
 clared||cleared
 closeing||closing
 clustred||clustered
-cnfiguration||configuration
-coexistance||coexistence
+calescing||coalescing
 colescing||coalescing
+coexistance||coexistence
 collapsable||collapsible
 colorfull||colorful
+conbination||combination
+comming||coming
 comand||command
-comit||commit
 commerical||commercial
-comming||coming
-comminucation||communication
+comit||commit
+committ||commit
 commited||committed
 commiting||committing
-committ||commit
-commnunication||communication
 commoditiy||commodity
-comsume||consume
-comsumer||consumer
-comsuming||consuming
+comunicate||communicate
+comminucation||communication
+commnunication||communication
+comunication||communication
+comparsion||comparison
 compability||compatibility
 compaibility||compatibility
-comparsion||comparison
 compatability||compatibility
-compatable||compatible
 compatibililty||compatibility
 compatibiliy||compatibility
 compatibilty||compatibility
 compatiblity||compatibility
-competion||completion
-compilant||compliant
+compatable||compatible
+comppatible||compatible
 compleatly||completely
-completition||completion
 completly||completely
+competion||completion
+completition||completion
+compilant||compliant
 complient||compliant
-componnents||components
 compoment||component
-comppatible||compatible
+componnents||components
 compres||compress
 compresion||compression
 comression||compression
-comunicate||communicate
-comunication||communication
-conbination||combination
-conditionaly||conditionally
 conditon||condition
 condtion||condition
-conected||connected
-conector||connector
+conditionaly||conditionally
+cnfiguration||configuration
 configration||configuration
-configred||configured
 configuartion||configuration
 configuation||configuration
-configued||configured
 configuratoin||configuration
 configuraton||configuration
 configuretion||configuration
 configutation||configuration
-conider||consider
+configred||configured
+configued||configured
 conjuction||conjunction
+conected||connected
 connecetd||connected
-connectinos||connections
-connetor||connector
 connnection||connection
+connectinos||connections
 connnections||connections
+conector||connector
+connetor||connector
+conider||consider
 consistancy||consistency
 consistant||consistent
+contraints||constraints
+contruct||construct
+contruction||construction
+comsume||consume
+comsumer||consumer
+comsuming||consuming
+contant||contact
 containes||contains
 containts||contains
 contaisn||contains
-contant||contact
 contence||contents
 contiguos||contiguous
+continueing||continuing
 continious||continuous
 continous||continuous
 continously||continuously
-continueing||continuing
-contraints||constraints
-contruct||construct
 contol||control
-contoller||controller
+controll||control
+cotrol||control
 controled||controlled
+contoller||controller
 controler||controller
-controll||control
-contruction||construction
-contry||country
-conuntry||country
-convertion||conversion
-convertor||converter
 convienient||convenient
 convinient||convenient
+convertion||conversion
+convertor||converter
 corected||corrected
 correponding||corresponding
-correponds||corresponds
 correspoding||corresponding
-cotrol||control
+correponds||corresponds
 cound||could
 couter||counter
 coutner||counter
-cryptocraphic||cryptographic
 cunter||counter
+contry||country
+conuntry||country
+cryptocraphic||cryptographic
 curently||currently
 cylic||cyclic
-dafault||default
-deactive||deactivate
-deafult||default
 deamon||daemon
+detabase||database
+deactive||deactivate
+desactivate||deactivate
 debouce||debounce
-decendant||descendant
-decendants||descendants
+delare||declare
+delared||declared
+delares||declares
+delaring||declaring
+dicline||decline
 decompres||decompress
-decsribed||described
-decription||description
-dectected||detected
+dafault||default
+deafult||default
 defailt||default
+defualt||default
+defult||default
 deferal||deferral
 deffered||deferred
 defferred||deferred
@@ -430,257 +434,251 @@ definate||definite
 definately||definitely
 definiation||definition
 defintion||definition
+difinition||definition
 defintions||definitions
-defualt||default
-defult||default
-deintializing||deinitializing
 deintialize||deinitialize
 deintialized||deinitialized
-deivce||device
-delared||declared
-delare||declare
-delares||declares
-delaring||declaring
+deintializing||deinitializing
 delemiter||delimiter
 delievered||delivered
 demodualtor||demodulator
-demension||dimension
 dependancies||dependencies
 dependancy||dependency
 dependant||dependent
 dependend||dependent
-depreacted||deprecated
 depreacte||deprecate
-desactivate||deactivate
-desciptor||descriptor
-desciptors||descriptors
-descripto||descriptor
+depreacted||deprecated
+decendant||descendant
+decendants||descendants
+decsribed||described
+decription||description
 descripton||description
 descrition||description
+desciptor||descriptor
+descripto||descriptor
 descritptor||descriptor
 desctiptor||descriptor
 desriptor||descriptor
+desciptors||descriptors
 desriptors||descriptors
+disired||desired
 desination||destination
 destionation||destination
-destoried||destroyed
 destory||destroy
+destoried||destroyed
 destoryed||destroyed
-destorys||destroys
 destroied||destroyed
-detabase||database
-deteced||detected
+destorys||destroys
 detectt||detect
+dectected||detected
+deteced||detected
 develope||develop
-developement||development
 developped||developed
-developpement||development
 developper||developer
+developement||development
+developpement||development
 developpment||development
 deveolpment||development
-devided||divided
+deivce||device
 deviece||device
-devision||division
-diable||disable
-diabled||disabled
-dicline||decline
 dictionnary||dictionary
 didnt||didn't
-diferent||different
 differrence||difference
+diferent||different
 diffrent||different
 differenciate||differentiate
 diffrentiate||differentiate
-difinition||definition
+disgest||digest
 digial||digital
+demension||dimension
 dimention||dimension
 dimesions||dimensions
-diconnected||disconnected
-disabed||disabled
-disble||disable
-disgest||digest
-disired||desired
-dispalying||displaying
-diplay||display
 directon||direction
 direcly||directly
 direectly||directly
-diregard||disregard
-disassocation||disassociation
-disapear||disappear
-disapeared||disappeared
-disappared||disappeared
+diable||disable
 disbale||disable
-disbaled||disabled
 disble||disable
+diabled||disabled
+disabed||disabled
+disbaled||disabled
 disbled||disabled
-disconnet||disconnect
-discontinous||discontinuous
-disharge||discharge
 disnabled||disabled
-dispertion||dispersion
+disapear||disappear
+disapeared||disappeared
+disappared||disappeared
 dissapears||disappears
+disassocation||disassociation
+disharge||discharge
+disconnet||disconnect
 dissconect||disconnect
+diconnected||disconnected
+discontinous||discontinuous
+dispertion||dispersion
+diplay||display
+dispalying||displaying
+diregard||disregard
 distiction||distinction
+devided||divided
 divisable||divisible
+devision||division
 divsiors||divisors
+documment||document
 docuentation||documentation
 documantation||documentation
 documentaion||documentation
-documment||document
+dosen||doesn
 doesnt||doesn't
 donwload||download
-donwloading||downloading
-dorp||drop
-dosen||doesn
 downlad||download
+donwloading||downloading
 downlads||downloads
-droped||dropped
+dorp||drop
 droput||dropout
+droped||dropped
 druing||during
 dyanmic||dynamic
 dynmaic||dynamic
-eanable||enable
-eanble||enable
 easilly||easily
-ecspecially||especially
 edditable||editable
 editting||editing
 efective||effective
 effectivness||effectiveness
 efficently||efficiently
-ehther||ether
 eigth||eight
-elementry||elementary
 eletronic||electronic
+elementry||elementary
 embeded||embedded
-enabledi||enabled
+eanable||enable
+eanble||enable
 enbale||enable
 enble||enable
-enchanced||enhanced
-encorporating||incorporating
+enabledi||enabled
+enocded||encoded
 encrupted||encrypted
 encrypiton||encryption
 encryptio||encryption
 endianess||endianness
 enpoint||endpoint
+enchanced||enhanced
 enhaced||enhanced
 enlightnment||enlightenment
+enought||enough
 enqueing||enqueuing
-entires||entries
+enterily||entirely
 entites||entities
+entires||entries
 entrys||entries
-enocded||encoded
-enought||enough
-enterily||entirely
 enviroiment||environment
 enviroment||environment
 environement||environment
 environent||environment
-eqivalent||equivalent
 equiped||equipped
+eqivalent||equivalent
 equivelant||equivalent
 equivilant||equivalent
 eror||error
 errorr||error
 errror||error
+ecspecially||especially
+expecially||especially
 estbalishment||establishment
 etsablishment||establishment
 etsbalishment||establishment
+ehther||ether
 evalute||evaluate
 evalutes||evaluates
 evalution||evaluation
-excecutable||executable
-exceded||exceeded
-exceds||exceeds
+exmaple||example
 exceeed||exceed
-excellant||excellent
+exeed||exceed
+exceded||exceeded
 execeeded||exceeded
+exceds||exceeds
 execeeds||exceeds
-exeed||exceed
 exeeds||exceeds
+excellant||excellent
+exlcude||exclude
+exlcusive||exclusive
+excecutable||executable
 exeuction||execution
+exixt||exist
 existance||existence
 existant||existent
-exixt||exist
-exlcude||exclude
-exlcusive||exclusive
-exmaple||example
-expecially||especially
+exprimental||experimental
 experies||expires
 explicite||explicit
-explicitely||explicitly
 explict||explicit
+explicitely||explicitly
 explictely||explicitly
 explictly||explicitly
 expresion||expression
-exprimental||experimental
-extened||extended
 exteneded||extended
+extened||extended
 extensability||extensibility
-extention||extension
 extenstion||extension
+extention||extension
 extracter||extractor
+faill||fail
 faied||failed
 faield||failed
-faild||failed
 failded||failed
-failer||failure
-faill||fail
+faild||failed
 failied||failed
+falied||failed
+failng||failing
+failer||failure
 faillure||failure
 failue||failure
 failuer||failure
-failng||failing
-faireness||fairness
-falied||failed
 faliure||failure
+faireness||fairness
 fallbck||fallback
 familar||familiar
 fatser||faster
 feauture||feature
-feautures||features
 fetaure||feature
+feautures||features
 fetaures||features
 fileystem||filesystem
+finanize||finalize
+finilizes||finalizes
+findn||find
+finsih||finish
 fimrware||firmware
 fimware||firmware
 firmare||firmware
 firmaware||firmware
 firware||firmware
 firwmare||firmware
-finanize||finalize
-findn||find
-finilizes||finalizes
-finsih||finish
 flusing||flushing
 folloing||following
 followign||following
 followings||following
 follwing||following
-fonud||found
-forseeable||foreseeable
 forse||force
+forseeable||foreseeable
 fortan||fortran
 forwardig||forwarding
+fonud||found
 frambuffer||framebuffer
-framming||framing
 framwork||framework
+framming||framing
+frequancy||frequency
 frequence||frequency
 frequncy||frequency
-frequancy||frequency
 frome||from
+fullill||fulfill
 fucntion||function
 fuction||function
-fuctions||functions
-fullill||fulfill
 funcation||function
 funcion||function
+funtion||function
 functionallity||functionality
-functionaly||functionally
 functionnality||functionality
 functonality||functionality
-funtion||function
+functionaly||functionally
+fuctions||functions
 funtions||functions
 furthur||further
 futhermore||furthermore
@@ -688,179 +686,181 @@ futrue||future
 gatable||gateable
 gateing||gating
 gauage||gauge
-gaurenteed||guaranteed
-generiously||generously
+guage||gauge
 genereate||generate
 genereted||generated
 genric||generic
+generiously||generously
 globel||global
 grabing||grabbing
-grahical||graphical
-grahpical||graphical
+grranted||granted
 granularty||granularity
 grapic||graphic
-grranted||granted
-guage||gauge
-guarenteed||guaranteed
+grahical||graphical
+grahpical||graphical
 guarentee||guarantee
+gaurenteed||guaranteed
+guarenteed||guaranteed
 halfs||halves
-hander||handler
 handfull||handful
 hanlde||handle
 hanled||handled
+hander||handler
 happend||happened
 hardare||hardware
 harware||hardware
 havind||having
-heirarchically||hierarchically
-heirarchy||hierarchy
-helpfull||helpful
 hearbeat||heartbeat
+helpfull||helpful
 heterogenous||heterogeneous
 hexdecimal||hexadecimal
 hybernate||hibernate
+heirarchically||hierarchically
+heirarchy||hierarchy
 hierachy||hierarchy
 hierarchie||hierarchy
 homogenous||homogeneous
 howver||however
-hsould||should
-hypervior||hypervisor
 hypter||hyper
+hypervior||hypervisor
 identidier||identifier
+ingore||ignore
 iligal||illegal
-illigal||illegal
 illgal||illegal
-iomaped||iomapped
+illigal||illegal
 imblance||imbalance
-immeadiately||immediately
 immedaite||immediate
 immedate||immediate
+immidiate||immediate
+immeadiately||immediately
 immediatelly||immediately
 immediatly||immediately
-immidiate||immediate
 immutible||immutable
 impelentation||implementation
-impementated||implemented
 implemantation||implementation
 implemenation||implementation
 implementaiton||implementation
-implementated||implemented
 implemention||implementation
-implementd||implemented
 implemetation||implementation
 implemntation||implementation
 implentation||implementation
 implmentation||implementation
+impementated||implemented
+implementated||implemented
+implementd||implemented
 implmenting||implementing
+unprecise||imprecise
 incative||inactive
+inculde||include
+incuding||including
 incomming||incoming
 incompatabilities||incompatibilities
 incompatable||incompatible
 incompatble||incompatible
+uncompatible||incompatible
 inconsistant||inconsistent
+encorporating||incorporating
 increas||increase
-incremeted||incremented
 incrment||increment
-incuding||including
-inculde||include
+incremeted||incremented
 indendation||indentation
-indended||intended
 independant||independent
-independantly||independently
 independed||independent
+independantly||independently
 indiate||indicate
 indicat||indicate
+invididual||individual
 inexpect||inexpected
-inferface||interface
 infinit||infinite
 infomation||information
 informatiom||information
 informations||information
 informtion||information
 infromation||information
-ingore||ignore
 inital||initial
-initalized||initialized
-initalised||initialized
-initalise||initialize
-initalize||initialize
-initation||initiation
-initators||initiators
+intial||initial
+intialisation||initialisation
+intialise||initialise
+intialised||initialised
 initialiazation||initialization
 initializationg||initialization
 initializiation||initialization
-initialze||initialize
-initialzed||initialized
-initialzing||initializing
 initilization||initialization
+intialization||initialization
+initalise||initialize
+initalize||initialize
+initialze||initialize
 initilize||initialize
 initliaze||initialize
+intialize||initialize
+initalised||initialized
+initalized||initialized
+initialzed||initialized
 initilized||initialized
-inofficial||unofficial
-inrerface||interface
-insititute||institute
-instace||instance
+intiailized||initialized
+intialized||initialized
+initialzing||initializing
+initation||initiation
+initators||initiators
 instal||install
+instace||instance
 instanciate||instantiate
 instanciated||instantiated
+insititute||institute
 instuments||instruments
 insufficent||insufficient
-inteface||interface
+interger||integer
+intregral||integral
 integreated||integrated
+intergrated||integrated
 integrety||integrity
 integrey||integrity
+indended||intended
 intendet||intended
 intented||intended
-interanl||internal
 interchangable||interchangeable
+inferface||interface
+inrerface||interface
+inteface||interface
+interrface||interface
 interferring||interfering
-interger||integer
-intergrated||integrated
 intermittant||intermittent
+interanl||internal
 internel||internal
 interoprability||interoperability
-interuupt||interrupt
-interupt||interrupt
-interupts||interrupts
-interrface||interface
 interrrupt||interrupt
 interrup||interrupt
-interrups||interrupts
-interruptted||interrupted
-interupted||interrupted
-intiailized||initialized
-intial||initial
-intialisation||initialisation
-intialised||initialised
-intialise||initialise
-intialization||initialization
-intialized||initialized
-intialize||initialize
-intregral||integral
+interupt||interrupt
+interuupt||interrupt
 intrerrupt||interrupt
 intrrupt||interrupt
 intterrupt||interrupt
+interruptted||interrupted
+interupted||interrupted
+interrups||interrupts
+interupts||interrupts
 intuative||intuitive
 inavlid||invalid
 invaid||invalid
 invaild||invalid
 invailid||invalid
-invald||invalid
 invalde||invalid
+invald||invalid
 invalide||invalid
-invalidiate||invalidate
 invalud||invalid
-invididual||individual
+unvalid||invalid
+invalidiate||invalidate
 invokation||invocation
 invokations||invocations
+iomaped||iomapped
 ireelevant||irrelevant
 irrelevent||irrelevant
 isnt||isn't
 isssue||issue
 issus||issues
+itertation||iteration
 iteraions||iterations
 iternations||iterations
-itertation||iteration
 itslef||itself
 jave||java
 jeffies||jiffies
@@ -868,180 +868,179 @@ jumpimng||jumping
 juse||just
 jus||just
 kown||known
+layed||laid
 langage||language
 langauage||language
 langauge||language
 langugage||language
 lauch||launch
-layed||laid
 legnth||length
-leightweight||lightweight
 lengh||length
 lenght||length
 lenth||length
 lesstiff||lesstif
 libaries||libraries
-libary||library
 librairies||libraries
 libraris||libraries
+libary||library
 licenceing||licencing
+leightweight||lightweight
 limted||limited
 logaritmic||logarithmic
+logile||logfile
 loggging||logging
 loggin||login
-logile||logfile
 loobpack||loopback
 loosing||losing
 losted||lost
-maangement||management
 machinary||machinery
 maibox||mailbox
+maintan||maintain
 maintainance||maintenance
 maintainence||maintenance
-maintan||maintain
 makeing||making
 mailformed||malformed
-malplaced||misplaced
-malplace||misplace
+misformed||malformed
 managable||manageable
+maangement||management
 managament||management
 managment||management
 mangement||management
 manger||manager
 manoeuvering||maneuvering
 manufaucturing||manufacturing
-mappping||mapping
+mnay||many
 maping||mapping
+mappping||mapping
 matchs||matches
-mathimatical||mathematical
 mathimatic||mathematic
+mathimatical||mathematical
 mathimatics||mathematics
 maximium||maximum
 maxium||maximum
+miximum||maximum
+ment||meant
 mechamism||mechanism
 meetign||meeting
-memeory||memory
 memmber||member
+memeory||memory
 memoery||memory
+memomry||memory
 memroy||memory
-ment||meant
+momery||memory
 mergable||mergeable
 mesage||message
+messsage||message
 messags||messages
 messgaes||messages
-messsage||message
 messsages||messages
 metdata||metadata
 micropone||microphone
 microprocesspr||microprocessor
 migrateable||migratable
 milliseonds||milliseconds
-minium||minimum
 minimam||minimum
+minium||minimum
 miniumum||minimum
 minumum||minimum
 misalinged||misaligned
 miscelleneous||miscellaneous
-misformed||malformed
-mispelled||misspelled
-mispelt||misspelt
-mising||missing
-mismactch||mismatch
-missign||missing
 missmanaged||mismanaged
+mismactch||mismatch
 missmatch||mismatch
+malplace||misplace
+malplaced||misplaced
+mising||missing
+missign||missing
 misssing||missing
-miximum||maximum
+mispelled||misspelled
+mispelt||misspelt
 mmnemonic||mnemonic
-mnay||many
-modfiy||modify
 modifer||modifier
+modfiy||modify
+mopdule||module
 modulues||modules
-momery||memory
-memomry||memory
 monitring||monitoring
 monochorome||monochrome
 monochromo||monochrome
 monocrome||monochrome
-mopdule||module
 mroe||more
-multipler||multiplier
-mulitplied||multiplied
+mutli||multi
+muticast||multicast
+mutilcast||multicast
 multidimensionnal||multidimensional
 multipe||multiple
 multple||multiple
-mumber||number
-muticast||multicast
-mutilcast||multicast
 mutiple||multiple
-mutli||multi
+mulitplied||multiplied
+multipler||multiplier
 nams||names
 navagating||navigating
-nead||need
 neccecary||necessary
 neccesary||necessary
 neccessary||necessary
 necesary||necessary
+nescessary||necessary
+nessessary||necessary
+nead||need
 neded||needed
 negaive||negative
 negoitation||negotiation
 negotation||negotiation
 nerver||never
-nescessary||necessary
-nessessary||necessary
 noticable||noticeable
 notication||notification
 notications||notifications
 notifcations||notifications
 notifed||notified
 notity||notify
+mumber||number
 nubmer||number
 numebr||number
 numner||number
 obtaion||obtain
-obusing||abusing
 occassionally||occasionally
 occationally||occasionally
-occurance||occurrence
-occurances||occurrences
 occurd||occurred
 occured||occurred
-occurence||occurrence
 occure||occurred
+occurance||occurrence
+occurence||occurrence
+occurances||occurrences
 occuring||occurring
-offser||offset
-offet||offset
 offlaod||offload
 offloded||offloaded
+offet||offset
+offser||offset
 offseting||offsetting
+omitt||omit
 omited||omitted
+ommitted||omitted
 omiting||omitting
-omitt||omit
 ommiting||omitting
-ommitted||omitted
 onself||oneself
 ony||only
 openning||opening
 operatione||operation
 opertaions||operations
 opportunies||opportunities
-optionnal||optional
 optmizations||optimizations
+optionnal||optional
 orientatied||orientated
 orientied||oriented
-orignal||original
 originial||original
+orignal||original
 otherise||otherwise
 ouput||output
 oustanding||outstanding
 overaall||overall
-overhread||overhead
-overlaping||overlapping
 overflw||overflow
 overlfow||overflow
-overide||override
+overhread||overhead
+overlaping||overlapping
 overrided||overridden
 overriden||overridden
+overide||override
 overrrun||overrun
 overun||overrun
 overwritting||overwriting
@@ -1051,44 +1050,45 @@ pachage||package
 packacge||package
 packege||package
 packge||package
-packtes||packets
 pakage||package
 paket||packet
+packtes||packets
 pallette||palette
-paln||plan
+paramater||parameter
+paramter||parameter
+pramater||parameter
 paramameters||parameters
 paramaters||parameters
-paramater||parameter
 parametes||parameters
-parametised||parametrised
-paramter||parameter
 paramters||parameters
 parmaters||parameters
+parametised||parametrised
 particuarly||particularly
 particularily||particularly
 partion||partition
-partions||partitions
 partiton||partition
+partions||partitions
 pased||passed
 passin||passing
 pathes||paths
 pattrns||patterns
 pecularities||peculiarities
-peformance||performance
-peforming||performing
-peice||piece
 pendantic||pedantic
-peprocessor||preprocessor
+preform||perform
+peformance||performance
 perfomance||performance
+peforming||performing
 perfoming||performing
 perfomring||performing
+peroid||period
 periperal||peripheral
 peripherial||peripheral
 permissons||permissions
-peroid||period
 persistance||persistence
 persistant||persistent
 phoneticly||phonetically
+peice||piece
+paln||plan
 plalform||platform
 platfoem||platform
 platfrom||platform
@@ -1099,193 +1099,192 @@ plugable||pluggable
 poinnter||pointer
 pointeur||pointer
 poiter||pointer
-posible||possible
+protable||portable
 positon||position
 possibilites||possibilities
-potocol||protocol
+posible||possible
+pwoer||power
 powerfull||powerful
-pramater||parameter
 preamle||preamble
 preample||preamble
-preapre||prepare
-preceeded||preceded
-preceeding||preceding
 preceed||precede
+preceeded||preceded
 precendence||precedence
+preceeding||preceding
 precission||precision
 preemptable||preemptible
-prefered||preferred
+premption||preemption
 prefferably||preferably
+prefered||preferred
 prefitler||prefilter
-preform||perform
-premption||preemption
-prepaired||prepared
-prepate||prepare
 preperation||preparation
+preapre||prepare
+prepate||prepare
 preprare||prepare
+prepaired||prepared
+peprocessor||preprocessor
 pressre||pressure
 presuambly||presumably
 previosuly||previously
 primative||primitive
 princliple||principle
 priorty||priority
-privilaged||privileged
 privilage||privilege
 priviledge||privilege
+privilaged||privileged
 priviledges||privileges
 privleges||privileges
 probaly||probably
+prodecure||procedure
 procceed||proceed
-proccesors||processors
-procesed||processed
 proces||process
+prosess||process
+procesed||processed
+processsed||processed
+processess||processes
 procesing||processing
 processessing||processing
-processess||processes
-processpr||processor
-processsed||processed
 processsing||processing
-procteted||protected
-prodecure||procedure
-progamming||programming
-progams||programs
-progess||progress
+processpr||processor
+proccesors||processors
+programm||program
 programable||programmable
 programers||programmers
-programm||program
+progamming||programming
+progams||programs
 programms||programs
+progess||progress
 progresss||progress
 prohibitted||prohibited
 prohibitting||prohibiting
 promiscous||promiscuous
 promps||prompts
-pronnounced||pronounced
-prononciation||pronunciation
 pronouce||pronounce
 pronunce||pronounce
-propery||property
+pronnounced||pronounced
+prononciation||pronunciation
 propigate||propagate
+propogate||propagate
 propigation||propagation
 propogation||propagation
-propogate||propagate
-prosess||process
-protable||portable
-protcol||protocol
-protecion||protection
+propery||property
+procteted||protected
 protedcted||protected
+protecion||protection
+potocol||protocol
+protcol||protocol
 protocoll||protocol
 promixity||proximity
 psudo||pseudo
 psuedo||pseudo
 psychadelic||psychedelic
 purgable||purgeable
-pwoer||power
-queing||queuing
 quering||querying
 queus||queues
+queing||queuing
+runned||ran
 randomally||randomly
-raoming||roaming
-reasearcher||researcher
-reasearchers||researchers
-reasearch||research
 receieve||receive
-recepient||recipient
+recieve||receive
 recevied||received
-receving||receiving
 recievd||received
 recieved||received
-recieve||receive
 reciever||receiver
 recieves||receives
+receving||receiving
 recieving||receiving
+recepient||recipient
 recogniced||recognised
 recognizeable||recognizable
 recommanded||recommended
 recyle||recycle
 redircet||redirect
 redirectrion||redirection
+reudce||reduce
 redundacy||redundancy
-reename||rename
 refcounf||refcount
 refence||reference
-refered||referred
 referenace||reference
-refering||referring
-refernces||references
 refernnce||reference
 refrence||reference
+refernces||references
+refered||referred
+refering||referring
+regsiter||register
+regster||register
+reqister||register
 registed||registered
 registerd||registered
-registeration||registration
 registeresd||registered
 registerred||registered
 registes||registers
+registeration||registration
 registraration||registration
-regsiter||register
-regster||register
+reigstration||registration
 regualar||regular
-reguator||regulator
 regulamentations||regulations
-reigstration||registration
+reguator||regulator
 releated||related
 relevent||relevant
 reloade||reload
 remoote||remote
 remore||remote
 removeable||removable
-repectively||respectively
+rmeove||remove
+rmeoved||removed
+rmeoves||removes
+reename||rename
 replacable||replaceable
 replacments||replacements
 replys||replies
-reponse||response
 representaion||representation
 reqeust||request
-reqister||register
-requed||requeued
+requst||request
+reuest||request
+reuqest||request
+rquest||request
 requestied||requested
+requsted||requested
+requed||requeued
 requiere||require
-requirment||requirement
 requred||required
 requried||required
-requst||request
-requsted||requested
+requirment||requirement
 reregisteration||reregistration
-reseting||resetting
+reasearch||research
+reasearcher||researcher
+reasearchers||researchers
 reseved||reserved
 reseverd||reserved
+reseting||resetting
 resizeable||resizable
-resouce||resource
-resouces||resources
-resoures||resources
-responce||response
-resrouce||resource
 ressizes||resizes
+resouce||resource
+resrouce||resource
 ressource||resource
+resouces||resources
+resoures||resources
 ressources||resources
-restesting||retesting
+repectively||respectively
+reponse||response
+responce||response
 resumbmitting||resubmitting
+restesting||retesting
 retransmited||retransmitted
-retreived||retrieved
 retreive||retrieve
-retreiving||retrieving
 retrive||retrieve
+retreived||retrieved
 retrived||retrieved
+retreiving||retrieving
 retrun||return
 retun||return
 retuned||returned
-reudce||reduce
-reuest||request
-reuqest||request
 reutnred||returned
 revsion||revision
-rmeoved||removed
-rmeove||remove
-rmeoves||removes
+raoming||roaming
 rountine||routine
 routins||routines
-rquest||request
 runing||running
-runned||ran
 runnning||running
 runtine||runtime
 sacrifying||sacrificing
@@ -1295,223 +1294,219 @@ savable||saveable
 scaleing||scaling
 scaned||scanned
 scaning||scanning
-scarch||search
+senario||scenario
+senarios||scenarios
 schdule||schedule
+scarch||search
 seach||search
 searchs||searches
-secion||section
-secquence||sequence
 secund||second
+secion||section
 segement||segment
 seleted||selected
 semaphone||semaphore
-senario||scenario
-senarios||scenarios
 sentivite||sensitive
-separatly||separately
-sepcify||specify
+seperate||separate
+sepperate||separate
 seperated||separated
+separatly||separately
 seperately||separately
-seperate||separate
 seperatly||separately
 seperator||separator
-sepperate||separate
+secquence||sequence
 seqeunce||sequence
-seqeuncer||sequencer
-seqeuencer||sequencer
 sequece||sequence
 sequemce||sequence
+seqeuencer||sequencer
+seqeuncer||sequencer
 sequencial||sequential
 serivce||service
-serveral||several
 servive||service
 setts||sets
 settting||setting
-shapshot||snapshot
-shotdown||shutdown
+serveral||several
+hsould||should
 shoud||should
-shouldnt||shouldn't
 shoule||should
+shouldnt||shouldn't
 shrinked||shrunk
-siginificantly||significantly
+shotdown||shutdown
 signabl||signal
+singal||signal
+singaled||signaled
+singed||signed
+siginificantly||significantly
 significanly||significantly
-similary||similarly
 similiar||similar
 simlar||similar
 simliar||similar
+similary||similarly
 simpified||simplified
-singaled||signaled
-singal||signal
-singed||signed
 sleeped||slept
 sliped||slipped
+shapshot||snapshot
 softwade||software
 softwares||software
 soley||solely
 souce||source
-speach||speech
 specfic||specific
-specfield||specified
-speciefied||specified
 specifc||specific
-specifed||specified
 specificatin||specification
 specificaton||specification
+specfield||specified
+speciefied||specified
+specifed||specified
 specificed||specified
-specifing||specifying
-specifiy||specify
-specifiying||specifying
 speficied||specified
+sepcify||specify
+specifiy||specify
 speicify||specify
+specifing||specifying
+specifiying||specifying
+speach||speech
 speling||spelling
 spinlcok||spinlock
 spinock||spinlock
 splitted||split
 spreaded||spread
 spurrious||spurious
-sructure||structure
 stablilization||stabilization
-staically||statically
-staion||station
-standardss||standards
-standartization||standardization
 standart||standard
-standy||standby
 stardard||standard
+standartization||standardization
+standardss||standards
+standy||standby
+staically||statically
 staticly||statically
+staion||station
 statuss||status
 stoped||stopped
-stoping||stopping
 stoppped||stopped
+stoping||stopping
 straming||streaming
 struc||struct
-structres||structures
 stuct||struct
+sructure||structure
 strucuture||structure
 stucture||structure
 sturcture||structure
+structres||structures
 subdirectoires||subdirectories
+submition||submission
+submited||submitted
+susbsystem||subsystem
 suble||subtle
 substract||subtract
-submited||submitted
-submition||submission
-succeded||succeeded
 suceed||succeed
-succesfully||successfully
-succesful||successful
+succeded||succeeded
 successed||succeeded
+sucess||success
+usccess||success
+succesful||successful
 successfull||successful
+sucessful||successful
+succesfully||successfully
 successfuly||successfully
 sucessfully||successfully
-sucessful||successful
-sucess||success
 superflous||superfluous
 superseeded||superseded
 suplied||supplied
-suported||supported
 suport||support
-supportet||supported
+suppport||support
+supprot||support
+suported||supported
 suppored||supported
-supportin||supporting
+supportet||supported
 suppoted||supported
 suppported||supported
-suppport||support
-supprot||support
+supportin||supporting
 supress||suppress
 surpressed||suppressed
 surpresses||suppresses
-susbsystem||subsystem
-suspeneded||suspended
 suspsend||suspend
+suspeneded||suspended
 suspicously||suspiciously
 swaping||swapping
-switchs||switches
+swithc||switch
 swith||switch
+swtich||switch
 swithable||switchable
-swithc||switch
 swithced||switched
-swithcing||switching
 swithed||switched
+switchs||switches
+swithcing||switching
 swithing||switching
-swtich||switch
-syfs||sysfs
 symetric||symmetric
-synax||syntax
-synchonized||synchronized
-synchronuously||synchronously
 syncronize||synchronize
+synchonized||synchronized
 syncronized||synchronized
 syncronizing||synchronizing
 syncronus||synchronous
+synchronuously||synchronously
+synax||syntax
+sythesis||synthesis
+syfs||sysfs
 syste||system
 sytem||system
-sythesis||synthesis
-taht||that
-tansmit||transmit
+traget||target
 targetted||targeted
 targetting||targeting
 taskelt||tasklet
-teh||the
-temorary||temporary
-temproarily||temporarily
 temperture||temperature
-thead||thread
-therfore||therefore
+temproarily||temporarily
+temorary||temporary
+taht||that
+teh||the
 thier||their
+therfore||therefore
+thses||these
+tmis||this
+thead||thread
 threds||threads
 threee||three
 threshhold||threshold
 thresold||threshold
+treshold||threshold
 throught||through
-trackling||tracking
 troughput||throughput
-trys||tries
-thses||these
-tiggers||triggers
-tiggered||triggered
-tipically||typically
-timeing||timing
 timout||timeout
-tmis||this
+timeing||timing
 toogle||toggle
 torerable||tolerable
-traget||target
+trackling||tracking
 traking||tracking
-tramsmitted||transmitted
-tramsmit||transmit
 tranasction||transaction
 tranceiver||transceiver
-tranfer||transfer
-tranmission||transmission
 transcevier||transceiver
 transciever||transceiver
+tranfer||transfer
+trasfer||transfer
 transferd||transferred
 transfered||transferred
 transfering||transferring
-transision||transition
-transmittd||transmitted
 transormed||transformed
-trasfer||transfer
+transision||transition
+tranmission||transmission
 trasmission||transmission
-treshold||threshold
-triggerd||triggered
+tansmit||transmit
+tramsmit||transmit
+tramsmitted||transmitted
+transmittd||transmitted
+trys||tries
+tiggered||triggered
 trigerred||triggered
+triggerd||triggered
 trigerring||triggering
-trun||turn
-tunning||tuning
+tiggers||triggers
 ture||true
+tunning||tuning
+trun||turn
 tyep||type
-udpate||update
-uesd||used
-uknown||unknown
-usccess||success
+tipically||typically
 uncommited||uncommitted
-uncompatible||incompatible
 unconditionaly||unconditionally
 undeflow||underflow
 underun||underrun
-unecessary||unnecessary
 unexecpted||unexpected
 unexepected||unexpected
 unexpcted||unexpected
@@ -1520,45 +1515,48 @@ unexpeted||unexpected
 unexpexted||unexpected
 unfortunatelly||unfortunately
 unifiy||unify
-uniterrupted||uninterrupted
 unintialized||uninitialized
 unitialized||uninitialized
+uniterrupted||uninterrupted
+uknown||unknown
 unkmown||unknown
 unknonw||unknown
 unknouwn||unknown
 unknow||unknown
 unkown||unknown
+unmached||unmatched
 unamed||unnamed
-uneeded||unneeded
-unneded||unneeded
+unneedingly||unnecessarily
+unecessary||unnecessary
 unneccecary||unnecessary
 unneccesary||unnecessary
 unneccessary||unnecessary
 unnecesary||unnecessary
-unneedingly||unnecessarily
-unnsupported||unsupported
-unmached||unmatched
-unprecise||imprecise
+uneeded||unneeded
+unneded||unneeded
+inofficial||unofficial
 unregester||unregister
 unresgister||unregister
 unrgesiter||unregister
 unsinged||unsigned
-unstabel||unstable
 unsolicitied||unsolicited
+unstabel||unstable
 unsuccessfull||unsuccessful
+unnsupported||unsupported
 unsuported||unsupported
+upsupported||unsupported
+usupported||unsupported
 untill||until
 ununsed||unused
-unuseful||useless
-unvalid||invalid
+udpate||update
 upate||update
-upsupported||unsupported
+usege||usage
+uesd||used
 usefule||useful
 usefull||useful
-usege||usage
+unuseful||useless
 usera||users
 usualy||usually
-usupported||unsupported
 utilites||utilities
 utillities||utilities
 utilties||utilities
@@ -1568,42 +1566,43 @@ utitlty||utility
 vaid||valid
 vaild||valid
 valide||valid
-variantions||variations
+alue||value
+vaule||value
 varible||variable
 varient||variant
-vaule||value
+variantions||variations
 verbse||verbose
 veify||verify
 veriosn||version
-verisons||versions
 verison||version
 verson||version
+verisons||versions
 vicefersa||vice-versa
 virtal||virtual
 virtaul||virtual
 virtiual||virtual
-visiters||visitors
 vitual||virtual
+visiters||visitors
 vunerable||vulnerable
+wiat||wait
+wating||waiting
 wakeus||wakeups
+wnat||want
 wathdog||watchdog
-wating||waiting
-wiat||wait
-wether||whether
+wierd||weird
 whataver||whatever
-whcih||which
+whe||when
 whenver||whenever
+wether||whether
 wheter||whether
-whe||when
-wierd||weird
+whcih||which
 wiil||will
-wirte||write
+wtih||with
 withing||within
-wnat||want
 wont||won't
 workarould||workaround
+wirte||write
 writeing||writing
 writting||writing
-wtih||with
 zombe||zombie
 zomebie||zombie
-- 
2.25.1



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 3/3] scripts/spelling.txt: add some spelling "mistake||correction" pairs
  2021-06-11  7:12 [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Zhen Lei
  2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
  2021-06-11  7:12 ` [PATCH 2/3] scripts/spelling.txt: sort and remove duplicates Zhen Lei
@ 2021-06-11  7:12 ` Zhen Lei
  2021-06-11  8:02 ` [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Andy Shevchenko
  3 siblings, 0 replies; 17+ messages in thread
From: Zhen Lei @ 2021-06-11  7:12 UTC (permalink / raw)
  To: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel
  Cc: Zhen Lei

This is all the spelling mistakes I've fixed so far.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 scripts/spelling.txt | 75 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index 18fca77914e3..f1c832c99b65 100644
--- a/scripts/spelling.txt
+++ b/scripts/spelling.txt
@@ -40,6 +40,7 @@ accordign||according
 accoring||according
 acording||according
 accout||account
+accouting||accounting
 accumalate||accumulate
 acumulating||accumulating
 acumulative||accumulative
@@ -85,6 +86,7 @@ againt||against
 agaist||against
 aggreataon||aggregation
 aggreation||aggregation
+aggresive||aggressive
 albumns||albums
 algorith||algorithm
 algorithmn||algorithm
@@ -107,10 +109,14 @@ allocte||allocate
 alocate||allocate
 alloated||allocated
 allocatrd||allocated
+alloced||allocated
 allocted||allocated
+alocated||allocated
 alow||allow
 alows||allows
 alot||a lot
+alpha-numeric||alphanumeric
+alread||already
 alreay||already
 alredy||already
 altough||although
@@ -118,6 +124,7 @@ abigious||ambiguous
 ambigious||ambiguous
 ambigous||ambiguous
 amoung||among
+ammount||amount
 amout||amount
 amplifer||amplifier
 amplifyer||amplifier
@@ -128,6 +135,7 @@ anniversery||anniversary
 annoucement||announcement
 anomolies||anomalies
 anomoly||anomaly
+aother||another
 anway||anyway
 an one||a one
 appearence||appearance
@@ -164,14 +172,17 @@ asign||assign
 assgined||assigned
 assiged||assigned
 assigment||assignment
+assignement||assignment
 assigments||assignments
 assistent||assistant
 assocaited||associated
 associcated||associated
 assotiated||associated
+asssociated||associated
 assocating||associating
 assocation||association
 assum||assume
+asumed||assumed
 asuming||assuming
 assumtpion||assumption
 asymetric||asymmetric
@@ -204,7 +215,9 @@ automatizes||automates
 atomatically||automatically
 automaticaly||automatically
 automaticly||automatically
+automtically||automatically
 autonymous||autonomous
+auxilary||auxiliary
 auxillary||auxiliary
 auxilliary||auxiliary
 availablity||availability
@@ -304,6 +317,7 @@ childern||children
 childs||children
 chouse||chose
 choosen||chosen
+cipherntext||ciphertext
 circumvernt||circumvent
 claread||cleared
 clared||cleared
@@ -346,6 +360,7 @@ complient||compliant
 compoment||component
 componnents||components
 compres||compress
+compresed||compressed
 compresion||compression
 comression||compression
 conditon||condition
@@ -369,6 +384,7 @@ connectinos||connections
 connnections||connections
 conector||connector
 connetor||connector
+conervative||conservative
 conider||consider
 consistancy||consistency
 consistant||consistent
@@ -378,6 +394,7 @@ contruction||construction
 comsume||consume
 comsumer||consumer
 comsuming||consuming
+consumtion||consumption
 contant||contact
 containes||contains
 containts||contains
@@ -396,12 +413,15 @@ contoller||controller
 controler||controller
 convienient||convenient
 convinient||convenient
+convetion||convention
 convertion||conversion
 convertor||converter
 corected||corrected
 correponding||corresponding
 correspoding||corresponding
+correspondig||corresponding
 correponds||corresponds
+corresonds||corresponds
 cound||could
 couter||counter
 coutner||counter
@@ -409,9 +429,11 @@ cunter||counter
 contry||country
 conuntry||country
 cryptocraphic||cryptographic
+curremt||current
 curently||currently
 cylic||cyclic
 deamon||daemon
+datas||data
 detabase||database
 deactive||deactivate
 desactivate||deactivate
@@ -422,6 +444,7 @@ delares||declares
 delaring||declaring
 dicline||decline
 decompres||decompress
+deompression||decompression
 dafault||default
 deafult||default
 defailt||default
@@ -444,12 +467,15 @@ delievered||delivered
 demodualtor||demodulator
 dependancies||dependencies
 dependancy||dependency
+dependeny||dependency
 dependant||dependent
 dependend||dependent
 depreacte||deprecate
 depreacted||deprecated
+dervied||derived
 decendant||descendant
 decendants||descendants
+desribe||describe
 decsribed||described
 decription||description
 descripton||description
@@ -472,6 +498,7 @@ destorys||destroys
 detectt||detect
 dectected||detected
 deteced||detected
+determin||determine
 develope||develop
 developped||developed
 developper||developer
@@ -496,6 +523,7 @@ dimesions||dimensions
 directon||direction
 direcly||directly
 direectly||directly
+dirtyness||dirtiness
 diable||disable
 disbale||disable
 disble||disable
@@ -526,9 +554,11 @@ divsiors||divisors
 documment||document
 docuentation||documentation
 documantation||documentation
+documenation||documentation
 documentaion||documentation
 dosen||doesn
 doesnt||doesn't
+dont't||don't
 donwload||download
 downlad||download
 donwloading||downloading
@@ -536,6 +566,7 @@ downlads||downloads
 dorp||drop
 droput||dropout
 droped||dropped
+droppped||dropped
 druing||during
 dyanmic||dynamic
 dynmaic||dynamic
@@ -546,6 +577,7 @@ efective||effective
 effectivness||effectiveness
 efficently||efficiently
 eigth||eight
+ether||either
 eletronic||electronic
 elementry||elementary
 embeded||embedded
@@ -559,6 +591,7 @@ encrupted||encrypted
 encrypiton||encryption
 encryptio||encryption
 endianess||endianness
+endoint||endpoint
 enpoint||endpoint
 enchanced||enhanced
 enhaced||enhanced
@@ -599,8 +632,10 @@ execeeds||exceeds
 exeeds||exceeds
 excellant||excellent
 exlcude||exclude
+exlude||exclude
 exlcusive||exclusive
 excecutable||executable
+excute||execute
 exeuction||execution
 exixt||exist
 existance||existence
@@ -640,6 +675,7 @@ feauture||feature
 fetaure||feature
 feautures||features
 fetaures||features
+feeded||fed
 fileystem||filesystem
 finanize||finalize
 finilizes||finalizes
@@ -651,6 +687,7 @@ firmare||firmware
 firmaware||firmware
 firware||firmware
 firwmare||firmware
+flaged||flagged
 flusing||flushing
 folloing||following
 followign||following
@@ -673,6 +710,7 @@ fucntion||function
 fuction||function
 funcation||function
 funcion||function
+funciton||function
 funtion||function
 functionallity||functionality
 functionnality||functionality
@@ -719,6 +757,8 @@ heirarchically||hierarchically
 heirarchy||hierarchy
 hierachy||hierarchy
 hierarchie||hierarchy
+hierarhcy||hierarchy
+higer||higher
 homogenous||homogeneous
 howver||however
 hypter||hyper
@@ -769,9 +809,11 @@ independed||independent
 independantly||independently
 indiate||indicate
 indicat||indicate
+indicies||indices
 invididual||individual
 inexpect||inexpected
 infinit||infinite
+inifinite||infinite
 infomation||information
 informatiom||information
 informations||information
@@ -800,6 +842,8 @@ initilized||initialized
 intiailized||initialized
 intialized||initialized
 initialzing||initializing
+intializing||initializing
+initate||initiate
 initation||initiation
 initators||initiators
 instal||install
@@ -828,6 +872,8 @@ intermittant||intermittent
 interanl||internal
 internel||internal
 interoprability||interoperability
+intepreted||interpreted
+interpeter||interpreter
 interrrupt||interrupt
 interrup||interrupt
 interupt||interrupt
@@ -835,6 +881,7 @@ interuupt||interrupt
 intrerrupt||interrupt
 intrrupt||interrupt
 intterrupt||interrupt
+interruped||interrupted
 interruptted||interrupted
 interupted||interrupted
 interrups||interrupts
@@ -874,6 +921,7 @@ langauage||language
 langauge||language
 langugage||language
 lauch||launch
+leaset||least
 legnth||length
 lengh||length
 lenght||length
@@ -912,6 +960,7 @@ manufaucturing||manufacturing
 mnay||many
 maping||mapping
 mappping||mapping
+markes||marks
 matchs||matches
 mathimatic||mathematic
 mathimatical||mathematical
@@ -987,6 +1036,7 @@ neded||needed
 negaive||negative
 negoitation||negotiation
 negotation||negotiation
+netiher||neither
 nerver||never
 noticable||noticeable
 notication||notification
@@ -999,6 +1049,7 @@ nubmer||number
 numebr||number
 numner||number
 obtaion||obtain
+obious||obvious
 occassionally||occasionally
 occationally||occasionally
 occurd||occurred
@@ -1054,6 +1105,7 @@ pakage||package
 paket||packet
 packtes||packets
 pallette||palette
+panicing||panicking
 paramater||parameter
 paramter||parameter
 pramater||parameter
@@ -1083,6 +1135,7 @@ perfomring||performing
 peroid||period
 periperal||peripheral
 peripherial||peripheral
+permanentely||permanently
 permissons||permissions
 persistance||persistence
 persistant||persistent
@@ -1099,10 +1152,13 @@ plugable||pluggable
 poinnter||pointer
 pointeur||pointer
 poiter||pointer
+posion||poison
 protable||portable
 positon||position
+possitive||positive
 possibilites||possibilities
 posible||possible
+potentialy||potentially
 pwoer||power
 powerfull||powerful
 preamle||preamble
@@ -1111,6 +1167,7 @@ preceed||precede
 preceeded||preceded
 precendence||precedence
 preceeding||preceding
+precisly||precisely
 precission||precision
 preemptable||preemptible
 premption||preemption
@@ -1123,6 +1180,7 @@ prepate||prepare
 preprare||prepare
 prepaired||prepared
 peprocessor||preprocessor
+presense||presence
 pressre||pressure
 presuambly||presumably
 previosuly||previously
@@ -1227,6 +1285,7 @@ reguator||regulator
 releated||related
 relevent||relevant
 reloade||reload
+remaning||remaining
 remoote||remote
 remore||remote
 removeable||removable
@@ -1268,6 +1327,7 @@ ressources||resources
 repectively||respectively
 reponse||response
 responce||response
+resposible||responsible
 resumbmitting||resubmitting
 restesting||retesting
 retransmited||retransmitted
@@ -1306,6 +1366,7 @@ segement||segment
 seleted||selected
 semaphone||semaphore
 sentivite||sensitive
+sentinal||sentinel
 seperate||separate
 sepperate||separate
 seperated||separated
@@ -1317,6 +1378,7 @@ secquence||sequence
 seqeunce||sequence
 sequece||sequence
 sequemce||sequence
+squence||sequence
 seqeuencer||sequencer
 seqeuncer||sequencer
 sequencial||sequential
@@ -1325,6 +1387,7 @@ servive||service
 setts||sets
 settting||setting
 serveral||several
+sharable||shareable
 hsould||should
 shoud||should
 shoule||should
@@ -1343,6 +1406,7 @@ simliar||similar
 similary||similarly
 simpified||simplified
 sleeped||slept
+slighly||slightly
 sliped||slipped
 shapshot||snapshot
 softwade||software
@@ -1376,13 +1440,16 @@ stardard||standard
 standartization||standardization
 standardss||standards
 standy||standby
+statments||statements
 staically||statically
 staticly||statically
 staion||station
 statuss||status
+stil||still
 stoped||stopped
 stoppped||stopped
 stoping||stopping
+storeing||storing
 straming||streaming
 struc||struct
 stuct||struct
@@ -1397,6 +1464,7 @@ submited||submitted
 susbsystem||subsystem
 suble||subtle
 substract||subtract
+succed||succeed
 suceed||succeed
 succeded||succeeded
 successed||succeeded
@@ -1437,6 +1505,7 @@ switchs||switches
 swithcing||switching
 swithing||switching
 symetric||symmetric
+syncronise||synchronise
 syncronize||synchronize
 synchonized||synchronized
 syncronized||synchronized
@@ -1448,6 +1517,7 @@ sythesis||synthesis
 syfs||sysfs
 syste||system
 sytem||system
+taget||target
 traget||target
 targetted||targeted
 targetting||targeting
@@ -1456,6 +1526,7 @@ temperture||temperature
 temproarily||temporarily
 temorary||temporary
 taht||that
+thats||that's
 teh||the
 thier||their
 therfore||therefore
@@ -1468,6 +1539,7 @@ threshhold||threshold
 thresold||threshold
 treshold||threshold
 throught||through
+thru||through
 troughput||throughput
 timout||timeout
 timeing||timing
@@ -1496,6 +1568,7 @@ trys||tries
 tiggered||triggered
 trigerred||triggered
 triggerd||triggered
+triggerred||triggered
 trigerring||triggering
 tiggers||triggers
 ture||true
@@ -1550,12 +1623,14 @@ untill||until
 ununsed||unused
 udpate||update
 upate||update
+udpated||updated
 usege||usage
 uesd||used
 usefule||useful
 usefull||useful
 unuseful||useless
 usera||users
+userpsace||userspace
 usualy||usually
 utilites||utilities
 utillities||utilities
-- 
2.25.1



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
@ 2021-06-11  7:58   ` Andy Shevchenko
  2021-06-11  9:30     ` Leizhen (ThunderTown)
  2021-06-11 15:36   ` Joe Perches
  1 sibling, 1 reply; 17+ messages in thread
From: Andy Shevchenko @ 2021-06-11  7:58 UTC (permalink / raw)
  To: Zhen Lei
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel

On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>
> The file scripts/spelling.txt recorded a large number of
> "mistake||correction" pairs. These entries are currently maintained in
> order, but the results are not strict. In addition, when someone wants to
> add some new pairs, he either sort them manually or write a script, which
> is clearly a waste of labor. So add this script. It removes the duplicates
> first, then sort by correctly spelled words. Sorting based on misspelled
> words is not chose because it is uncontrollable.

chosen

...

> +#!/bin/sh

If you want to have stricter rules applied, use
#!/bin/sh -efu
in all your shell scripts, it will show you a lot of problems.

Missed SPDX.

> +src=spelling.txt

> +tmp=spelling_mistake_correction_pairs.txt

It will pollute the source tree, so use `mktemp` or utilize O=. In
case there is no O= supplied (or whatever equivalent to describe
output folder) you will get it in the source tree, so it needs to be
Git-ignored.

> +cd `dirname $0`

Useless use of dirname. Check for %, %%, #, and ## substitutions (`man sh`).
IIRC dirname equivalent is ${0%/*}.

> +# Convert the format of 'codespell' to the current
> +sed -r -i 's/ ==> /||/' $src
> +
> +# Move the spelling "mistake||correction" pairs into file $tmp

> +# There are currently 9 lines of comments in $src, so the text starts at line 10
> +sed -n '10,$p' $src > $tmp
> +sed -i '10,$d' $src

This is fragile, use proper comment line detection.

> +# Remove duplicates first, then sort by correctly spelled words
> +sort -u $tmp -o $tmp
> +sort -t '|' -k 3 $tmp -o $tmp

Can be one pipeline

> +# Append sorted results to comments
> +cat $tmp >> $src

I believe it can be done in a better way, but I was not thinking about it.

> +# Delete the temporary file
> +rm -f $tmp

What if the script will be trapped? It's good to handle SIGHUP I
suppose, so we won't leave garbage behind us.

> +cd - > /dev/null

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
  2021-06-11  7:12 [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Zhen Lei
                   ` (2 preceding siblings ...)
  2021-06-11  7:12 ` [PATCH 3/3] scripts/spelling.txt: add some spelling "mistake||correction" pairs Zhen Lei
@ 2021-06-11  8:02 ` Andy Shevchenko
  2021-06-11  8:10   ` Andy Shevchenko
  2021-06-11  8:12   ` Leizhen (ThunderTown)
  3 siblings, 2 replies; 17+ messages in thread
From: Andy Shevchenko @ 2021-06-11  8:02 UTC (permalink / raw)
  To: Zhen Lei
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel

On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>
> Add spelling_sanitizer.sh and use it to reorder, then add some spelling
> "mistake||correction" pairs.

The sorting idea is good, but the order is not.
What you really need is to use language corpus [1] instead. So in such
case you will eliminate false positives (to some extent).

[1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
  2021-06-11  8:02 ` [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Andy Shevchenko
@ 2021-06-11  8:10   ` Andy Shevchenko
  2021-06-11  9:48     ` Leizhen (ThunderTown)
  2021-06-11  8:12   ` Leizhen (ThunderTown)
  1 sibling, 1 reply; 17+ messages in thread
From: Andy Shevchenko @ 2021-06-11  8:10 UTC (permalink / raw)
  To: Zhen Lei
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel

On Fri, Jun 11, 2021 at 11:02 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
> >
> > Add spelling_sanitizer.sh and use it to reorder, then add some spelling
> > "mistake||correction" pairs.
>
> The sorting idea is good, but the order is not.
> What you really need is to use language corpus [1] instead. So in such
> case you will eliminate false positives (to some extent).

Perhaps I need to elaborate what I meant. The (important) feature of
the corpus is sorting by frequency of the word usage. That's what
would be the best. Unfortunately I don't know if codespell uses linear
search or hash based (i.o.w. does it convert the input file to the
Python list() or set() object?).

> [1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
  2021-06-11  8:02 ` [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Andy Shevchenko
  2021-06-11  8:10   ` Andy Shevchenko
@ 2021-06-11  8:12   ` Leizhen (ThunderTown)
  1 sibling, 0 replies; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-11  8:12 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel



On 2021/6/11 16:02, Andy Shevchenko wrote:
> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>>
>> Add spelling_sanitizer.sh and use it to reorder, then add some spelling
>> "mistake||correction" pairs.
> 
> The sorting idea is good, but the order is not.
> What you really need is to use language corpus [1] instead. So in such
> case you will eliminate false positives (to some extent).

Yes, the default sorting result of the sort command is different from that of
strcmp(). "export LC_ALL=C" needs to be added. It's mentioned in "man sort":

*** WARNING *** The locale specified by the environment affects sort order.
Set LC_ALL=C to get the traditional sort order that uses native byte values.

Let me add it.

> 
> [1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  7:58   ` Andy Shevchenko
@ 2021-06-11  9:30     ` Leizhen (ThunderTown)
  2021-06-11  9:41       ` Andy Shevchenko
  0 siblings, 1 reply; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-11  9:30 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel



On 2021/6/11 15:58, Andy Shevchenko wrote:
> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>>
>> The file scripts/spelling.txt recorded a large number of
>> "mistake||correction" pairs. These entries are currently maintained in
>> order, but the results are not strict. In addition, when someone wants to
>> add some new pairs, he either sort them manually or write a script, which
>> is clearly a waste of labor. So add this script. It removes the duplicates
>> first, then sort by correctly spelled words. Sorting based on misspelled
>> words is not chose because it is uncontrollable.
> 
> chosen

OK

> 
> ...
> 
>> +#!/bin/sh
> 
> If you want to have stricter rules applied, use
> #!/bin/sh -efu
> in all your shell scripts, it will show you a lot of problems.
> 
> Missed SPDX.

OK, I will add it.

> 
>> +src=spelling.txt
> 
>> +tmp=spelling_mistake_correction_pairs.txt
> 
> It will pollute the source tree, so use `mktemp` or utilize O=. In
> case there is no O= supplied (or whatever equivalent to describe
> output folder) you will get it in the source tree, so it needs to be
> Git-ignored.

OK, I will use mktemp to generate the tmp file.

> 
>> +cd `dirname $0`
> 
> Useless use of dirname. Check for %, %%, #, and ## substitutions (`man sh`).
> IIRC dirname equivalent is ${0%/*}.

I just tried it. It works.

> 
>> +# Convert the format of 'codespell' to the current
>> +sed -r -i 's/ ==> /||/' $src
>> +
>> +# Move the spelling "mistake||correction" pairs into file $tmp
> 
>> +# There are currently 9 lines of comments in $src, so the text starts at line 10
>> +sed -n '10,$p' $src > $tmp
>> +sed -i '10,$d' $src
> 
> This is fragile, use proper comment line detection.

I've thought about that too. But I'm wondering if it needs to be that
complicated.

Think about it. It's not something for personal temporary use, so it
should be perfect. I'll change to dynamic computing.

> 
>> +# Remove duplicates first, then sort by correctly spelled words
>> +sort -u $tmp -o $tmp
>> +sort -t '|' -k 3 $tmp -o $tmp
> 
> Can be one pipeline

OK, I will combine it.

> 
>> +# Append sorted results to comments
>> +cat $tmp >> $src
> 
> I believe it can be done in a better way, but I was not thinking about it.

I'll keep searching.

> 
>> +# Delete the temporary file
>> +rm -f $tmp
> 
> What if the script will be trapped? It's good to handle SIGHUP I
> suppose, so we won't leave garbage behind us.

You're very well thought out. I'll take care of it.

> 
>> +cd - > /dev/null
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  9:30     ` Leizhen (ThunderTown)
@ 2021-06-11  9:41       ` Andy Shevchenko
  2021-06-11  9:58         ` Leizhen (ThunderTown)
  0 siblings, 1 reply; 17+ messages in thread
From: Andy Shevchenko @ 2021-06-11  9:41 UTC (permalink / raw)
  To: Leizhen (ThunderTown)
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel

On Fri, Jun 11, 2021 at 12:30 PM Leizhen (ThunderTown)
<thunder.leizhen@huawei.com> wrote:
> On 2021/6/11 15:58, Andy Shevchenko wrote:
> > On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:

...

> >> +# Convert the format of 'codespell' to the current
> >> +sed -r -i 's/ ==> /||/' $src
> >> +
> >> +# Move the spelling "mistake||correction" pairs into file $tmp
> >
> >> +# There are currently 9 lines of comments in $src, so the text starts at line 10
> >> +sed -n '10,$p' $src > $tmp
> >> +sed -i '10,$d' $src
> >
> > This is fragile, use proper comment line detection.
>
> I've thought about that too. But I'm wondering if it needs to be that
> complicated.
>
> Think about it. It's not something for personal temporary use, so it
> should be perfect. I'll change to dynamic computing.

sed has a possibility to choose between two anchors.

Google for `sed -e '/anchor 1/,/anchor 2/'` expressions. So, it will
be less complicated than current code.


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
  2021-06-11  8:10   ` Andy Shevchenko
@ 2021-06-11  9:48     ` Leizhen (ThunderTown)
  2021-06-11 10:08       ` Andy Shevchenko
  0 siblings, 1 reply; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-11  9:48 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel



On 2021/6/11 16:10, Andy Shevchenko wrote:
> On Fri, Jun 11, 2021 at 11:02 AM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
>> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>>>
>>> Add spelling_sanitizer.sh and use it to reorder, then add some spelling
>>> "mistake||correction" pairs.
>>
>> The sorting idea is good, but the order is not.
>> What you really need is to use language corpus [1] instead. So in such
>> case you will eliminate false positives (to some extent).
> 
> Perhaps I need to elaborate what I meant. The (important) feature of
> the corpus is sorting by frequency of the word usage. That's what

That's unlikely. Even if that were the case, no one could figure 'the frequency' out.

> would be the best. Unfortunately I don't know if codespell uses linear
> search or hash based (i.o.w. does it convert the input file to the
> Python list() or set() object?).

I think "spelling.txt" will be reprocessed by the tool.

For the same set of data, if the performance differs significantly or even does not work
due to the user's input order, the implementation of the tool itself must be problematic.

So our ranking of "spelling.txt" is how to make it easy to see.

I don't know if it's right. Pure logical reasoning.

> 
>> [1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English
> 
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  9:41       ` Andy Shevchenko
@ 2021-06-11  9:58         ` Leizhen (ThunderTown)
  0 siblings, 0 replies; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-11  9:58 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel



On 2021/6/11 17:41, Andy Shevchenko wrote:
> On Fri, Jun 11, 2021 at 12:30 PM Leizhen (ThunderTown)
> <thunder.leizhen@huawei.com> wrote:
>> On 2021/6/11 15:58, Andy Shevchenko wrote:
>>> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
> 
> ...
> 
>>>> +# Convert the format of 'codespell' to the current
>>>> +sed -r -i 's/ ==> /||/' $src
>>>> +
>>>> +# Move the spelling "mistake||correction" pairs into file $tmp
>>>
>>>> +# There are currently 9 lines of comments in $src, so the text starts at line 10
>>>> +sed -n '10,$p' $src > $tmp
>>>> +sed -i '10,$d' $src
>>>
>>> This is fragile, use proper comment line detection.
>>
>> I've thought about that too. But I'm wondering if it needs to be that
>> complicated.
>>
>> Think about it. It's not something for personal temporary use, so it
>> should be perfect. I'll change to dynamic computing.
> 
> sed has a possibility to choose between two anchors.
> 
> Google for `sed -e '/anchor 1/,/anchor 2/'` expressions. So, it will
> be less complicated than current code.

OK, thanks. I'm off work. I'll post the v2 next week.

> 
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder
  2021-06-11  9:48     ` Leizhen (ThunderTown)
@ 2021-06-11 10:08       ` Andy Shevchenko
  0 siblings, 0 replies; 17+ messages in thread
From: Andy Shevchenko @ 2021-06-11 10:08 UTC (permalink / raw)
  To: Leizhen (ThunderTown)
  Cc: Andrew Morton, Nicolas Dichtel, Joe Perches, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Rasmus Villemoes,
	linux-kernel

On Fri, Jun 11, 2021 at 05:48:14PM +0800, Leizhen (ThunderTown) wrote:
> On 2021/6/11 16:10, Andy Shevchenko wrote:
> > On Fri, Jun 11, 2021 at 11:02 AM Andy Shevchenko
> > <andy.shevchenko@gmail.com> wrote:
> >> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
> >>>
> >>> Add spelling_sanitizer.sh and use it to reorder, then add some spelling
> >>> "mistake||correction" pairs.
> >>
> >> The sorting idea is good, but the order is not.
> >> What you really need is to use language corpus [1] instead. So in such
> >> case you will eliminate false positives (to some extent).
> > 
> > Perhaps I need to elaborate what I meant. The (important) feature of
> > the corpus is sorting by frequency of the word usage. That's what
> 
> That's unlikely. Even if that were the case, no one could figure 'the frequency' out.

What do you mean? It's a natural sorting for the language corpus. First you get
the most used words down to less used.

> > would be the best. Unfortunately I don't know if codespell uses linear
> > search or hash based (i.o.w. does it convert the input file to the
> > Python list() or set() object?).
> 
> I think "spelling.txt" will be reprocessed by the tool.

Of course, and that's what I meant in the parentheses, i.e. to check what data
structure is used behind the scene.

> For the same set of data, if the performance differs significantly or even does not work
> due to the user's input order, the implementation of the tool itself must be problematic.
> 
> So our ranking of "spelling.txt" is how to make it easy to see.
> 
> I don't know if it's right. Pure logical reasoning.

Depends on the above it might increase the ratio of false positives.
Also it depends to the data base (spelling.txt).

What you need here is to make sure that:
 1) tool using arbitrary ordering already (by implying hash table, i.e. set()
    in Python);
 2) the current ordering is arbitrary and doesn't imply any side effects.

With this research conducted and explained, I'm fine with reordering.

> >> [1]: https://en.wikipedia.org/wiki/Corpus_of_Contemporary_American_English

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
  2021-06-11  7:58   ` Andy Shevchenko
@ 2021-06-11 15:36   ` Joe Perches
  2021-06-15  7:01     ` Leizhen (ThunderTown)
  1 sibling, 1 reply; 17+ messages in thread
From: Joe Perches @ 2021-06-11 15:36 UTC (permalink / raw)
  To: Zhen Lei, Andrew Morton, Nicolas Dichtel, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel

On Fri, 2021-06-11 at 15:12 +0800, Zhen Lei wrote:
> The file scripts/spelling.txt recorded a large number of
> "mistake||correction" pairs. These entries are currently maintained in
> order, but the results are not strict. In addition, when someone wants to
> add some new pairs, he either sort them manually or write a script, which
> is clearly a waste of labor.

Try using lintian's make sort

https://salsa.debian.org/lintian/lintian



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-11 15:36   ` Joe Perches
@ 2021-06-15  7:01     ` Leizhen (ThunderTown)
  2021-06-16 11:58       ` Leizhen (ThunderTown)
  0 siblings, 1 reply; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-15  7:01 UTC (permalink / raw)
  To: Joe Perches, Andrew Morton, Nicolas Dichtel, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel



On 2021/6/11 23:36, Joe Perches wrote:
> On Fri, 2021-06-11 at 15:12 +0800, Zhen Lei wrote:
>> The file scripts/spelling.txt recorded a large number of
>> "mistake||correction" pairs. These entries are currently maintained in
>> order, but the results are not strict. In addition, when someone wants to
>> add some new pairs, he either sort them manually or write a script, which
>> is clearly a waste of labor.
> 
> Try using lintian's make sort
> 
> https://salsa.debian.org/lintian/lintian
> 
> 

Okay, I'll try it

> 
> .
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-15  7:01     ` Leizhen (ThunderTown)
@ 2021-06-16 11:58       ` Leizhen (ThunderTown)
  2021-06-22  8:47         ` Leizhen (ThunderTown)
  0 siblings, 1 reply; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-16 11:58 UTC (permalink / raw)
  To: Joe Perches, Andrew Morton, Nicolas Dichtel, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel, Colin Ian King, Kees Cook



On 2021/6/15 15:01, Leizhen (ThunderTown) wrote:
> 
> 
> On 2021/6/11 23:36, Joe Perches wrote:
>> On Fri, 2021-06-11 at 15:12 +0800, Zhen Lei wrote:
>>> The file scripts/spelling.txt recorded a large number of
>>> "mistake||correction" pairs. These entries are currently maintained in
>>> order, but the results are not strict. In addition, when someone wants to
>>> add some new pairs, he either sort them manually or write a script, which
>>> is clearly a waste of labor.
>>
>> Try using lintian's make sort
>>
>> https://salsa.debian.org/lintian/lintian

I installed lintian and found no option to support sort. Can anyone give me more
specific instructions on how to use it?

Although I don't understand the perl language, after reading commit 66b47b4a9dad
("checkpatch: look for common misspellings"), it seems to match from top to bottom.
So, as Andy Shevchenko says, they should be sorted by frequency of the word usage.

I really don't know the details of the implementation of
scripts/checkpatch.pl --types=typo_spelling. Are only misspelled words involved in
spelling.txt matching? Otherwise, if correctly spelled words are also traversed,
sorting by frequency makes no sense. Because the correct number of words is far more
than the wrong number of words. If that's the case, then my modified script could
come in handy.

And if only misspelled words involved in spelling.txt matching, do we really need
spelling.txt? Just output the misspelled words is enough. I don't think anyone needs
to follow the tips to complete the fix.

>>
>>
> 
> Okay, I'll try it
> 
>>
>> .
>>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/3] scripts: add spelling_sanitizer.sh script
  2021-06-16 11:58       ` Leizhen (ThunderTown)
@ 2021-06-22  8:47         ` Leizhen (ThunderTown)
  0 siblings, 0 replies; 17+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-22  8:47 UTC (permalink / raw)
  To: Joe Perches, Andrew Morton, Nicolas Dichtel, Jason Baron,
	Stefani Seibold, Jacob Keller, Thomas Graf, Herbert Xu,
	Jens Axboe, Petr Mladek, Sergey Senozhatsky, Andy Shevchenko,
	Rasmus Villemoes, linux-kernel, Colin Ian King, Kees Cook



On 2021/6/16 19:58, Leizhen (ThunderTown) wrote:
> 
> 
> On 2021/6/15 15:01, Leizhen (ThunderTown) wrote:
>>
>>
>> On 2021/6/11 23:36, Joe Perches wrote:
>>> On Fri, 2021-06-11 at 15:12 +0800, Zhen Lei wrote:
>>>> The file scripts/spelling.txt recorded a large number of
>>>> "mistake||correction" pairs. These entries are currently maintained in
>>>> order, but the results are not strict. In addition, when someone wants to
>>>> add some new pairs, he either sort them manually or write a script, which
>>>> is clearly a waste of labor.
>>>
>>> Try using lintian's make sort
>>>
>>> https://salsa.debian.org/lintian/lintian
> 
> I installed lintian and found no option to support sort. Can anyone give me more
> specific instructions on how to use it?
> 
> Although I don't understand the perl language, after reading commit 66b47b4a9dad
> ("checkpatch: look for common misspellings"), it seems to match from top to bottom.
> So, as Andy Shevchenko says, they should be sorted by frequency of the word usage.
> 
> I really don't know the details of the implementation of
> scripts/checkpatch.pl --types=typo_spelling. Are only misspelled words involved in
> spelling.txt matching? Otherwise, if correctly spelled words are also traversed,
> sorting by frequency makes no sense. Because the correct number of words is far more
> than the wrong number of words. If that's the case, then my modified script could
> come in handy.
> 
> And if only misspelled words involved in spelling.txt matching, do we really need
> spelling.txt? Just output the misspelled words is enough. I don't think anyone needs
> to follow the tips to complete the fix.

Hi all:
  I did a little test:
  git rm -r drivers/usb  --> then revert to generate patch 'usb, 553988 insertions(+)
  git rm -r mm/          --> then revert to generate patch 'mm', 157606 insertions(+)

  Two Stages(Test twice each, unit: seconds):
  Before sorted by this patch:
  mm    264   264
  usb  1049  1047

  After sorted by this patch:
  mm    264   265
  usb  1047  1045

  According to the test results, the performance before and after sorting is basically the same.

  The test method is as follows:
  start=$(date +%s)
  scripts/checkpatch.pl --types=TYPO_SPELLING 0001-Revert-usb-remove.patch > /dev/null
  end=$(date +%s)
  seconds=$((end - start))
  echo $seconds


> 
>>>
>>>
>>
>> Okay, I'll try it
>>
>>>
>>> .
>>>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-06-22  8:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  7:12 [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Zhen Lei
2021-06-11  7:12 ` [PATCH 1/3] scripts: add spelling_sanitizer.sh script Zhen Lei
2021-06-11  7:58   ` Andy Shevchenko
2021-06-11  9:30     ` Leizhen (ThunderTown)
2021-06-11  9:41       ` Andy Shevchenko
2021-06-11  9:58         ` Leizhen (ThunderTown)
2021-06-11 15:36   ` Joe Perches
2021-06-15  7:01     ` Leizhen (ThunderTown)
2021-06-16 11:58       ` Leizhen (ThunderTown)
2021-06-22  8:47         ` Leizhen (ThunderTown)
2021-06-11  7:12 ` [PATCH 2/3] scripts/spelling.txt: sort and remove duplicates Zhen Lei
2021-06-11  7:12 ` [PATCH 3/3] scripts/spelling.txt: add some spelling "mistake||correction" pairs Zhen Lei
2021-06-11  8:02 ` [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder Andy Shevchenko
2021-06-11  8:10   ` Andy Shevchenko
2021-06-11  9:48     ` Leizhen (ThunderTown)
2021-06-11 10:08       ` Andy Shevchenko
2021-06-11  8:12   ` Leizhen (ThunderTown)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.