Question to search
dv_parse_queryParse plain Persian search requests into Divar query arguments—city, neighborhoods, price limits, category, leftover words—ready for dv_search.
Instructions
Turn a plain Persian request into dv_search arguments: city, neighbourhoods, price bounds, category and leftover words.
A rule-based helper, not a language model: it finds a city and its neighbourhoods by name, amounts with
میلیارد / میلیون / هزار (with زیر, کمتر از, تا, بالای, حداقل or از ... تا ...), a category from Divar's own guess for the
leftover words, and moves rental words (اجاره, رهن) to the matching rent category. search can be passed to
dv_search as it is; check notes for what was assumed. An area like '80 متری' becomes a size filter of ±10%. Rooms, year or mileage are not extracted: use dv_filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A search as a person would write it, e.g. 'آپارتمان اجاره ونک زیر ۸ میلیارد' or 'پراید کرج تا ۲۰۰ میلیون'. |