There are 6 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c9732dd7-192f-4f88-8e0e-e543658d4f47 XWIKI-23455 Closed

Remove stop words for the Kebab Case Name Strategy

 
View issue   ยท   Add comment
 

6 updates

 
cid:jira-generated-image-avatar-672df832-eea8-491c-bc40-4e75dc75e953 Changes by Vincent Massol on 14/Jan/26 16:51
 
Fix Version: 18.0.0-rc-1
Fix Version: 18.1.0-rc-1
Attachment: after.png
Resolution: Fixed
Tests: Unit
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-672df832-eea8-491c-bc40-4e75dc75e953 Vincent Massol on 14/Jan/26 16:56
 

In the end I implemented a concept of "Forbidden Words". To use it to remove English stop words, configure it using the following:

a,about,above,after,again,against,all,am,an,and,any,are,arent,as,at,be,because,been,before,being,below,between,both,but,by,cant,cannot,could,couldnt,did,didnt,do,does,doesnt,doing,dont,down,during,each,few,for,from,further,had,hadnt,has,hasnt,have,havent,having,he,hed,hell,hes,her,here,heres,hers,herself,him,himself,his,how,hows,i,id,ill,im,ive,if,in,into,is,isnt,it,its,its,itself,lets,me,more,most,mustnt,my,myself,no,nor,not,of,off,on,once,only,or,other,ought,our,ours,ourselves,out,over,own,same,shant,she,shed,shell,shes,should,shouldnt,so,some,such,than,that,thats,the,their,theirs,them,themselves,then,there,theres,these,they,theyd,theyll,theyre,theyve,this,those,through,to,too,under,until,up,very,was,wasnt,we,wed,well,were,weve,were,werent,what,whats,when,whens,where,wheres,which,while,who,whos,whom,why,whys,with,wont,would,wouldnt,you,youd,youll,youre,youve,your,yours,yourself,yourselves

Note that the following stop words should be excluded since they match real English words:

  • "id" (for "i'd") is excluded since it could be the shortcut of identificator.
  • Same for "hell" ("he'll")
  • Same for "ill" ("i'll")
  • Same for "shed" ("she'd")
  • Same for "shell" ("she'll")
  • Same for "well" ("we'll")

Thus the following list should be used:

a,about,above,after,again,against,all,am,an,and,any,are,arent,as,at,be,because,been,before,being,below,between,both,but,by,cant,cannot,could,couldnt,did,didnt,do,does,doesnt,doing,dont,down,during,each,few,for,from,further,had,hadnt,has,hasnt,have,havent,having,he,hed,hes,her,here,heres,hers,herself,him,himself,his,how,hows,i,im,ive,if,in,into,is,isnt,it,its,its,itself,lets,me,more,most,mustnt,my,myself,no,nor,not,of,off,on,once,only,or,other,ought,our,ours,ourselves,out,over,own,same,shant,she,shes,should,shouldnt,so,some,such,than,that,thats,the,their,theirs,them,themselves,then,there,theres,these,they,theyd,theyll,theyre,theyve,this,those,through,to,too,under,until,up,very,was,wasnt,we,wed,were,weve,were,werent,what,whats,when,whens,where,wheres,which,while,who,whos,whom,why,whys,with,wont,would,wouldnt,you,youd,youll,youre,youve,your,yours,yourself,yourselves