%0 Conference Paper %A Tran, Manh Cuong %A Tran, Trung Kien %A Nguyen, Minh Tan %A Nguyen, Thu Trang %A Nguyen, Son %A Vo, Dinh Hieu %B THE 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE %D 2021 %F SisLab:4686 %T API parameter recommendation based on language model and program analysis %U https://eprints.uet.vnu.edu.vn/eprints/id/eprint/4686/ %X APIs are extensively and frequently used in source code to leverage existing libraries and improve programming productivity. However, correctly and effectively using APIs, es- pecially from unfamiliar libraries, is a non-trivial task. Although various approaches have been proposed for recommending API method calls in code completion, suggesting actual parameters for such APIs still needs further investigating. In this paper, we introduce FLUTE, an efficient and novel approach combining program analysis and language models for recommending API parameters. With FLUTE, the source code of programs is first analyzed to generate syntactically legal and type-valid candidates. Then, these candidates are ranked using language models. Our empirical results on two large real-world projects Netbeans and Eclipse indicate that FLUTE achieves 80% and +90% in Top- 1 and Top-5 Precision, which means the tool outperforms the state-of-the-art approach.