Back to LanguageTool Homepage - Privacy - Imprint

Automatise multiwords.txt

Hello!

I have been coding a feature for my Proofing Tool GUI software that will allow to create entries for multiwords.txt more easily.

All one has to do is to paste the words in the left editor gadget, select the Target POS, press “Process” and the tool will add the words to the editor gadget on the right:

  ; Portuguese
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Proper Name Singular (NPCS000)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Proper Name Plural (NPCP000)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Proper Name Singular (NPMS000)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Proper Name Plural (NPMP000)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Proper Name Singular (NPFS000)")   
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Proper Name Plural (NPFP000)") 
  
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Geography Singular (NPCSG00)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Geography Plural (NPCPG00)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Geography Singular (NPMSG00)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Geography Plural (NPMPG00)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Geography Singular (NPFSG00)")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Geography Plural (NPFPG00)")
  
  ; English
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Proper Name Singular ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Proper Name Plural ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Proper Name Singular ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Proper Name Plural ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Proper Name Singular ()")   
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Proper Name Plural ()") 
  
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Geography Singular ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Geography Plural ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Geography Singular ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Geography Plural ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Geography Singular ()")
  AddGadgetItem(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Geography Plural ()")

@dnaber @tiff @Mike_Unwalla @jaumeortola

Could someone fill the lines above regarding English, by adding the POS between the ()?

This way I could directly copy/paste from here into the source-code.

Also, feel free to add for other languages that I will just copy/paste into the source.

Thanks!

Sorry… I have reordered the Target POS and added another combobox.

Now we have a combobox for the language and other for the Target POS.

This makes things simpler.

  ; Portuguese
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Proper Name Singular (NPCS000)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Proper Name Singular (NPMS000)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Proper Name Singular (NPFS000)")   
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Proper Name Plural (NPCP000)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Proper Name Plural (NPMP000)")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Proper Name Plural (NPFP000)") 
  
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Geography Singular (NPCSG00)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Geography Singular (NPMSG00)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Geography Singular (NPFSG00)")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Neutral - Geography Plural (NPCPG00)")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Male - Geography Plural (NPMPG00)")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"Portuguese - Female - Geography Plural (NPFPG00)")
  
  ; English
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Proper Name Singular ()")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Proper Name Singular ()")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Proper Name Singular ()")   
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Proper Name Plural ()")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Proper Name Plural ()")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Proper Name Plural ()") 
  
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Geography Singular ()")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Geography Singular ()")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Geography Singular ()")
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Neutral - Geography Plural ()")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Male - Geography Plural ()")      
  bulk_import_add_multiwords_to_array_combobox(#COMBOBOX_BULK_IMPORT_IN_MULTIWORDS,-1,"English - Female - Geography Plural ()")