This repository records the R codes that the first author (GPWR) uses to process the .lift XML output of FLEx Lexicon and integrate it with the .flextext XML output of FLEx interlinear analysis tab. The process aims to build the SFM format to be imported back into FLEx. These processes are needed to automate the linking between the root and the complex forms (as subentries of the roots), including adding the example sentences (for both the root and subentries) and source references of these examples. If you use and adapt any materials from this repository, please cite this repository using the metadata from this .cff file as well as the Contemporary Enggano FLEx database