private void computeWordProposals(String word,int offset,List propositionList){
  int qualifierLength=word.length();
  for (int i=0; i < proposals.length; i++) {
    String proposalText=proposals[i];
    if (proposalText.startsWith(word)) {
      String text=proposalText + " ";
      int cursor=proposalText.length();
      CompletionProposal proposal=new CompletionProposal(text,offset - qualifierLength,qualifierLength,cursor);
      propositionList.add(proposal);
    }
  }
}

private void computeWordProposals ( String word , int offset , List propositionList ) { int qualifierLength = word . length ( ) ; for ( int i = 0 ; i < proposals . length ; i ++ ) { String proposalText = proposals [ i ] ; if ( proposalText . startsWith ( word ) ) { String text = proposalText + " " ; int cursor = proposalText . length ( ) ; CompletionProposal proposal = new CompletionProposal ( text , offset - qualifierLength , qualifierLength , cursor ) ; propositionList . add ( proposal ) ; } } }
syntax - based proposal based for word beginning
