How can I import a list of words and shortcuts into my Android Personal Dictionary?


Question

jc able



ab about



bv above



ac account



This is a sample of the words and shortcuts that I'm trying to add into my Personal Dictionary. I've tried exporting my current dictionary with shortcuts and the text file inside of the zip contains this:



# Gboard Dictionary version:1



q ing



# From OS



jc able

t the



I'm able to import the above file, but as soon as I copy and paste my words into it I'm hit with an "Import failed" toast.



Here"s the full wordlist that I'm trying to copy and paste into the other file.



I've also tried the User Dictionary Manager app with no success as it doesn't seem to support shortcuts for words. It just assumes that the shortcut is part of the word.



Why isn't this working? What do I have to do too make it work?


Answer

I had a look at your file and couldn't import the words to Gboard either. There are 3 errors that make Gboard ignore your words and shortcuts: space between words & shortcuts and no language for the words.



Error 1: Space between words & shortcuts



Your words and shortcuts are separated by spaces. That's not correct. They must be separated by Tab. I didn't know that either. I created some words and shortcuts, then exported them. When I opened the exported file in a code editor, only then could I see that the separator was not a space but a tab character.



Error 2: No language for the words



This error is minor. Your words didn't belong to any dictionary language. It seems when you don't add the language, the words & shortcuts are not imported or GBoard just decides to ignore and select a language for you (I have not checked why). So, you must add a language at the end of each words separated of course by Tab characters.



Error 3: No dictionary version



Add the dictionary version at start of the file. GBoard ignores the language (see Error 2) which is bad if like me you have many languages enabled.



I have not found yet how to add words to the "All languages" dictionary (although you didn't ask).


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes